mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(deps): update to Angular 2.4.8
* chore(angular): update to latest stable angular * chore(deps): update app-scripts * chore(deps): sw-toolbox * chore(deps): bump to 1.1.1 app-scripts * chore(deps): abc order sw-toolbox * chore(deps): update to angular 2.4.8 * chore(build): pass appNgModule path to app-scripts, make run AoT instead of Prod when using --debug pass appNgModule path to app-scripts, make run AoT instead of Prod when using --debug
This commit is contained in:
@ -82,9 +82,10 @@ function buildTest(folderInfo: any) {
|
||||
let sassConfigPath = 'scripts/demos/sass.config.js';
|
||||
|
||||
let appEntryPoint = `dist/demos/${folderInfo.componentName}/main.ts`;
|
||||
let appNgModule = `dist/demos/${folderInfo.componentName}/app.module.ts`;
|
||||
let distDir = `dist/demos/${folderInfo.componentName}/`;
|
||||
|
||||
return runAppScripts(folderInfo, sassConfigPath, appEntryPoint, distDir);
|
||||
return runAppScripts(folderInfo, sassConfigPath, appEntryPoint, appNgModule, distDir);
|
||||
}
|
||||
|
||||
function buildAllTests(done: Function) {
|
||||
|
||||
@ -120,9 +120,10 @@ function buildTest(folderInfo: any) {
|
||||
let sassConfigPath = 'scripts/e2e/sass.config.js';
|
||||
|
||||
let appEntryPoint = `dist/e2e/components/${folderInfo.componentName}/test/${folderInfo.componentTest}/main.ts`;
|
||||
let appNgModule = `dist/e2e/components/${folderInfo.componentName}/test/${folderInfo.componentTest}/app.module.ts`;
|
||||
let distDir = `dist/e2e/components/${folderInfo.componentName}/test/${folderInfo.componentTest}/`;
|
||||
|
||||
return runAppScripts(folderInfo, sassConfigPath, appEntryPoint, distDir);
|
||||
return runAppScripts(folderInfo, sassConfigPath, appEntryPoint, appNgModule, distDir);
|
||||
}
|
||||
|
||||
function buildAllTests(done: Function) {
|
||||
|
||||
@ -178,14 +178,14 @@ export function runWebpack(pathToWebpackConfig: string, done: Function) {
|
||||
});
|
||||
}
|
||||
|
||||
export function runAppScripts(folderInfo: any, sassConfigPath: string, appEntryPoint: string, distDir: string) {
|
||||
export function runAppScripts(folderInfo: any, sassConfigPath: string, appEntryPoint: string, appNgModulePath: string, distDir: string) {
|
||||
console.log('Running ionic-app-scripts build with', folderInfo.componentName, '/', folderInfo.componentTest);
|
||||
let tsConfig = distDir + 'tsconfig.json';
|
||||
let scriptArgs = [
|
||||
'build',
|
||||
'--prod',
|
||||
'--sass', sassConfigPath,
|
||||
'--appEntryPoint', appEntryPoint,
|
||||
'--appNgModulePath', appNgModulePath,
|
||||
'--srcDir', distDir,
|
||||
'--wwwDir', distDir,
|
||||
'--tsconfig', tsConfig
|
||||
@ -194,6 +194,9 @@ export function runAppScripts(folderInfo: any, sassConfigPath: string, appEntryP
|
||||
const debug: boolean = argv.debug;
|
||||
if (debug) {
|
||||
scriptArgs.push('--debug');
|
||||
scriptArgs.push('--aot');
|
||||
} else {
|
||||
scriptArgs.push('--prod');
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user