mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00

* chore(e2e): add livereload server and clean task for e2e * chore(e2e): refactor to use gulp connect and open * chore(e2e): WIP remove open, add formatting, add reload task * wip(e2e): use SystemJS for faster dev e2e rebuilds * chore(e2e): wip removing old gulp file, old e2e task update template for e2e and port number * chore(e2e): wip add SystemJS for dev build of e2e, use those tasks instead * chore(e2e): uncomment out range components * chore(e2e): wip fix paths for the e2e tempate * chore(scripts): update README back to the old way * chore(e2e): code cleanup * chore(e2e): split tasks into dev and prod, put common tasks in e2e * chore(e2e): rename e2e templates and add to readme * chore(e2e): fix dev build so it will work with snapshot * chore(snapshot): get snapshot working with dev and prod builds
49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
import { join } from 'path';
|
|
|
|
|
|
// Names
|
|
export const COMPONENTS_NAME = 'components';
|
|
export const DIST_NAME = 'dist';
|
|
export const DEMOS_NAME = 'demos';
|
|
export const E2E_NAME = 'e2e';
|
|
export const PACKAGE_NAME = 'ionic-angular';
|
|
export const SCRIPTS_NAME = 'scripts';
|
|
export const BUILD_NAME = 'build';
|
|
export const SRC_NAME = 'src';
|
|
export const VENDOR_NAME = 'vendor';
|
|
export const NODE_MODULES = 'node_modules';
|
|
export const UMD_MODULE = 'umd';
|
|
export const ES_2015 = 'es2015';
|
|
export const ES5 = 'es5';
|
|
export const INDEX_JS = 'index.js';
|
|
export const BUNDLES = 'bundles';
|
|
|
|
// File Paths
|
|
export const PROJECT_ROOT = join(__dirname, '../..');
|
|
export const DEMOS_ROOT = join(PROJECT_ROOT, DEMOS_NAME);
|
|
export const DEMOS_SRC_ROOT = join(DEMOS_ROOT, SRC_NAME);
|
|
export const DIST_ROOT = join(PROJECT_ROOT, DIST_NAME);
|
|
export const DIST_E2E_ROOT = join(DIST_ROOT, E2E_NAME);
|
|
export const DIST_E2E_COMPONENTS_ROOT = join(DIST_E2E_ROOT, COMPONENTS_NAME);
|
|
export const DIST_BUILD_ROOT = join(DIST_ROOT, PACKAGE_NAME);
|
|
export const DIST_BUNDLE_ROOT = join(DIST_BUILD_ROOT, BUNDLES);
|
|
export const DIST_BUILD_UMD_ROOT = join(DIST_BUILD_ROOT, UMD_MODULE);
|
|
export const DIST_BUILD_UMD_BUNDLE_ENTRYPOINT = join(DIST_BUILD_ROOT, INDEX_JS);
|
|
export const DIST_BUILD_ES2015_ROOT = join(DIST_BUILD_ROOT, ES_2015);
|
|
export const DIST_VENDOR_ROOT = join(DIST_ROOT, VENDOR_NAME);
|
|
export const NODE_MODULES_ROOT = join(PROJECT_ROOT, NODE_MODULES);
|
|
export const SCRIPTS_ROOT = join(PROJECT_ROOT, SCRIPTS_NAME);
|
|
export const SRC_ROOT = join(PROJECT_ROOT, SRC_NAME);
|
|
|
|
export const SRC_COMPONENTS_ROOT = join(SRC_ROOT, COMPONENTS_NAME);
|
|
|
|
|
|
// NPM
|
|
export const NPM_VENDOR_FILES = [
|
|
'@angular', 'core-js/client', 'rxjs', 'systemjs/dist', 'zone.js/dist'
|
|
];
|
|
|
|
|
|
// SERVER
|
|
export const LOCAL_SERVER_PORT = 8000;
|