Skip to content

Commit 7d56b67

Browse files
author
Sebastian Florek
committed
Angular and Google Closure Compiler update
1 parent b3b7701 commit 7d56b67

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

bower.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"name": "kubernetes-dashboard",
66
"version": "0.0.1",
77
"dependencies": {
8-
"angular": "~1.4.8",
9-
"angular-animate": "~1.4.8",
10-
"angular-aria": "~1.4.8",
8+
"angular": "~1.5.0",
9+
"angular-animate": "~1.5.0",
10+
"angular-aria": "~1.5.0",
1111
"angular-material": "~1.0.1",
12-
"angular-messages": "~1.4.8",
12+
"angular-messages": "~1.5.0",
1313
"angular-ui-router": "~0.2.15",
14-
"angular-resource": "~1.4.8",
15-
"angular-sanitize": "~1.4.8"
14+
"angular-resource": "~1.5.0",
15+
"angular-sanitize": "~1.5.0"
1616
},
1717
"devDependencies": {
18-
"angular-mocks": "~1.4.8",
18+
"angular-mocks": "~1.5.0",
1919
"google-closure-library": "*"
2020
}
2121
}

build/script.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
6262
// "foo_flag: null" means that a flag is enabled.
6363
compilerFlags: {
6464
angular_pass: null,
65-
closure_entry_point: 'module$index_module',
65+
entry_point: 'index_module',
6666
compilation_level: 'ADVANCED_OPTIMIZATIONS',
6767
export_local_property_definitions: null,
6868
externs: [
69-
path.join(conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-1.4.js'),
69+
path.join(conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-1.5.js'),
7070
path.join(
7171
conf.paths.nodeModules,
72-
'google-closure-compiler/contrib/externs/angular-1.4-http-promise_templated.js'),
72+
'google-closure-compiler/contrib/externs/angular-1.5-http-promise_templated.js'),
7373
path.join(
7474
conf.paths.nodeModules,
75-
'google-closure-compiler/contrib/externs/angular-1.4-q_templated.js'),
75+
'google-closure-compiler/contrib/externs/angular-1.5-q_templated.js'),
7676
path.join(
7777
conf.paths.nodeModules, 'google-closure-compiler/contrib/externs/angular-material.js'),
7878
path.join(
@@ -92,10 +92,14 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
9292
'inferredConstCheck',
9393
// Let ESLint handle all lint checks.
9494
'lintChecks',
95+
// This checks aren't working with current google-closure-library version. Will be deleted
96+
// once it's fixed there.
97+
'unnecessaryCasts',
98+
'analyzerChecks',
9599
],
96100
language_in: 'ECMASCRIPT6_STRICT',
97101
language_out: 'ECMASCRIPT3',
98-
manage_closure_dependencies: true,
102+
dependency_mode: 'LOOSE',
99103
use_types_for_optimization: null,
100104
},
101105
compilerPath: path.join(conf.paths.nodeModules, 'google-closure-compiler/compiler.jar'),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"browserify-istanbul": "~0.2.1",
2121
"del": "~2.2.0",
2222
"eslint-plugin-angular": "~0.15.0",
23-
"google-closure-compiler": "~20151216.2.0",
23+
"google-closure-compiler": "~20160208.1.0",
2424
"gulp": "~3.9.0",
2525
"gulp-angular-templatecache": "~1.8.0",
2626
"gulp-autoprefixer": "~3.1.0",

0 commit comments

Comments
 (0)