From 86ff3bcf684e53c0b129d2b531638aa8b13f9eed Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Fri, 14 Jul 2017 16:17:28 -0700 Subject: [PATCH] Update npm dependencies Also, remove useless banner.txt --- banner.txt | 10 ---------- gulpfile.js | 31 +++++-------------------------- package.json | 14 +++++++------- 3 files changed, 12 insertions(+), 43 deletions(-) delete mode 100644 banner.txt diff --git a/banner.txt b/banner.txt deleted file mode 100644 index 55fd15c53..000000000 --- a/banner.txt +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @license - * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt - */ -// @version <%= pkg.version %> diff --git a/gulpfile.js b/gulpfile.js index 7d7f84007..f5acfa4b8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -53,7 +53,7 @@ function closurify(sourceName, fileName) { compilation_level: 'ADVANCED', language_in: 'ES6_STRICT', language_out: 'ES5_STRICT', - output_wrapper: '(function(){\n%output%\n}).call(self)', + isolation_mode: 'IIFE', assume_function_wrapper: true, js_output_file: `${fileName}.js`, warning_level: 'VERBOSE', @@ -64,23 +64,9 @@ function closurify(sourceName, fileName) { 'bower_components/html-imports/externs/html-imports.js', 'bower_components/shadycss/externs/shadycss-externs.js', 'bower_components/shadydom/externs/shadydom.js' - ], - // entry_point: `/entrypoints/${sourceName}-index.js`, - // dependency_mode: 'STRICT' + ] }; - // const closureSources = [ - // 'src/*.js', - // 'entrypoints/*.js', - // 'bower_components/custom-elements/src/**/*.js', - // 'bower_components/html-imports/src/*.js', - // 'bower_components/es6-promise/dist/es6-promise.auto.min.js', - // 'bower_components/webcomponents-platform/*.js', - // 'bower_components/shadycss/{src,entrypoints}/*.js', - // 'bower_components/shadydom/src/*.js', - // 'bower_components/template/*.js' - // ]; - const rollupOptions = { entry: `entrypoints/${sourceName}-index.js`, format: 'iife', @@ -96,12 +82,6 @@ function closurify(sourceName, fileName) { .pipe(closure(closureOptions)) .pipe(sourcemaps.write('.')) .pipe(gulp.dest('.')); - - // return gulp.src(sources, {base: './'}) - // .pipe(sourcemaps.init({loadMaps: true})) - // .pipe(closure(closureOptions)) - // .pipe(sourcemaps.write('.')) - // .pipe(gulp.dest('.')); } gulp.task('debugify-hi', () => { @@ -168,10 +148,9 @@ gulp.task('debugify-ce-es5-adapter', () => { gulp.task('refresh-bower', () => { return del('bower_components').then(() => { - let resolve, reject; - let p = new Promise((res, rej) => {resolve = res; reject = rej}); - bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e)); - return p; + return new Promise((resolve, reject) => { + bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e)); + }); }); }); diff --git a/package.json b/package.json index b335a22f6..5b06cbb1f 100644 --- a/package.json +++ b/package.json @@ -33,21 +33,21 @@ "@webcomponents/shadydom": "^1.0.0", "@webcomponents/template": "^1.0.0", "@webcomponents/webcomponents-platform": "^1.0.0", - "babel-preset-babili": "0.0.12", + "babel-preset-babili": "^0.1.4", "bower": "^1.8.0", - "del": "^2.2.2", - "es6-promise": "^4.1.0", + "del": "^3.0.0", + "es6-promise": "^4.1.1", "eslint": "^3.16.1", - "google-closure-compiler": "^20170409.0.0", + "google-closure-compiler": "^20170626.0.0", "gulp": "^3.8.8", "gulp-rename": "^1.2.2", "gulp-sourcemaps": "^2.4.1", "rollup-plugin-babel": "^2.7.1", - "rollup-stream": "^1.14.0", - "run-sequence": "^1.2.2", + "rollup-stream": "^1.23.1", + "run-sequence": "^2.0.0", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", - "web-component-tester": "6.0.0-prerelease.9" + "web-component-tester": "^6.0.0" }, "publishConfig": { "access": "public"