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:
Justin Willis
2017-02-21 16:43:38 -06:00
committed by GitHub
parent 6ceec7ad4d
commit 555519da62
4 changed files with 23 additions and 17 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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 {