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

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