diff --git a/bower.json b/bower.json index b18652c92344..185279f28f2d 100644 --- a/bower.json +++ b/bower.json @@ -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": "*" } } diff --git a/build/script.js b/build/script.js index 577788c5b13a..c2631bfab04b 100644 --- a/build/script.js +++ b/build/script.js @@ -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'), diff --git a/package.json b/package.json index 08dedbb93fe7..61cf57f91ac7 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "browserify-istanbul": "~0.2.1", "del": "~2.2.0", "eslint-plugin-angular": "~0.15.0", - "google-closure-compiler": "~20151216.2.0", + "google-closure-compiler": "~20160208.1.0", "gulp": "~3.9.0", "gulp-angular-templatecache": "~1.8.0", "gulp-autoprefixer": "~3.1.0",