提交 37cad13e 编写于 作者: P Piotr Bryk

Merge pull request #404 from floreks/angular-gcc-update

Angular and Google Closure Compiler update
......@@ -5,17 +5,17 @@
"name": "kubernetes-dashboard",
"version": "0.0.1",
"dependencies": {
"angular": "~1.4.8",
"angular-animate": "~1.4.8",
"angular-aria": "~1.4.8",
"angular": "~1.5.0",
"angular-animate": "~1.5.0",
"angular-aria": "~1.5.0",
"angular-material": "~1.0.1",
"angular-messages": "~1.4.8",
"angular-messages": "~1.5.0",
"angular-ui-router": "~0.2.15",
"angular-resource": "~1.4.8",
"angular-sanitize": "~1.4.8"
"angular-resource": "~1.5.0",
"angular-sanitize": "~1.5.0"
},
"devDependencies": {
"angular-mocks": "~1.4.8",
"angular-mocks": "~1.5.0",
"google-closure-library": "*"
}
}
......@@ -62,17 +62,17 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
// "foo_flag: null" means that a flag is enabled.
compilerFlags: {
angular_pass: null,
closure_entry_point: 'module$index_module',
entry_point: 'index_module',
compilation_level: 'ADVANCED_OPTIMIZATIONS',
export_local_property_definitions: null,
externs: [
path.join(conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-1.4.js'),
path.join(conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-1.5.js'),
path.join(
conf.paths.nodeModules,
'google-closure-compiler/contrib/externs/angular-1.4-http-promise_templated.js'),
'google-closure-compiler/contrib/externs/angular-1.5-http-promise_templated.js'),
path.join(
conf.paths.nodeModules,
'google-closure-compiler/contrib/externs/angular-1.4-q_templated.js'),
'google-closure-compiler/contrib/externs/angular-1.5-q_templated.js'),
path.join(
conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-material.js'),
path.join(
......@@ -92,10 +92,14 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
'inferredConstCheck',
// Let ESLint handle all lint checks.
'lintChecks',
// This checks aren't working with current google-closure-library version. Will be deleted
// once it's fixed there.
'unnecessaryCasts',
'analyzerChecks',
],
language_in: 'ECMASCRIPT6_STRICT',
language_out: 'ECMASCRIPT3',
manage_closure_dependencies: true,
dependency_mode: 'LOOSE',
use_types_for_optimization: null,
},
compilerPath: path.join(conf.paths.nodeModules, 'google-closure-compiler/compiler.jar'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册