Update npm dependencies

Also, remove useless banner.txt
This commit is contained in:
Daniel Freedman
2017-07-14 16:17:28 -07:00
parent edf84e6ebc
commit 86ff3bcf68
3 changed files with 12 additions and 43 deletions

View File

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

View File

@@ -53,7 +53,7 @@ function closurify(sourceName, fileName) {
compilation_level: 'ADVANCED', compilation_level: 'ADVANCED',
language_in: 'ES6_STRICT', language_in: 'ES6_STRICT',
language_out: 'ES5_STRICT', language_out: 'ES5_STRICT',
output_wrapper: '(function(){\n%output%\n}).call(self)', isolation_mode: 'IIFE',
assume_function_wrapper: true, assume_function_wrapper: true,
js_output_file: `${fileName}.js`, js_output_file: `${fileName}.js`,
warning_level: 'VERBOSE', warning_level: 'VERBOSE',
@@ -64,23 +64,9 @@ function closurify(sourceName, fileName) {
'bower_components/html-imports/externs/html-imports.js', 'bower_components/html-imports/externs/html-imports.js',
'bower_components/shadycss/externs/shadycss-externs.js', 'bower_components/shadycss/externs/shadycss-externs.js',
'bower_components/shadydom/externs/shadydom.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 = { const rollupOptions = {
entry: `entrypoints/${sourceName}-index.js`, entry: `entrypoints/${sourceName}-index.js`,
format: 'iife', format: 'iife',
@@ -96,12 +82,6 @@ function closurify(sourceName, fileName) {
.pipe(closure(closureOptions)) .pipe(closure(closureOptions))
.pipe(sourcemaps.write('.')) .pipe(sourcemaps.write('.'))
.pipe(gulp.dest('.')); .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', () => { gulp.task('debugify-hi', () => {
@@ -168,10 +148,9 @@ gulp.task('debugify-ce-es5-adapter', () => {
gulp.task('refresh-bower', () => { gulp.task('refresh-bower', () => {
return del('bower_components').then(() => { return del('bower_components').then(() => {
let resolve, reject; return new Promise((resolve, reject) => {
let p = new Promise((res, rej) => {resolve = res; reject = rej}); bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e));
bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e)); });
return p;
}); });
}); });

View File

@@ -33,21 +33,21 @@
"@webcomponents/shadydom": "^1.0.0", "@webcomponents/shadydom": "^1.0.0",
"@webcomponents/template": "^1.0.0", "@webcomponents/template": "^1.0.0",
"@webcomponents/webcomponents-platform": "^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", "bower": "^1.8.0",
"del": "^2.2.2", "del": "^3.0.0",
"es6-promise": "^4.1.0", "es6-promise": "^4.1.1",
"eslint": "^3.16.1", "eslint": "^3.16.1",
"google-closure-compiler": "^20170409.0.0", "google-closure-compiler": "^20170626.0.0",
"gulp": "^3.8.8", "gulp": "^3.8.8",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^2.4.1", "gulp-sourcemaps": "^2.4.1",
"rollup-plugin-babel": "^2.7.1", "rollup-plugin-babel": "^2.7.1",
"rollup-stream": "^1.14.0", "rollup-stream": "^1.23.1",
"run-sequence": "^1.2.2", "run-sequence": "^2.0.0",
"vinyl-buffer": "^1.0.0", "vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0", "vinyl-source-stream": "^1.1.0",
"web-component-tester": "6.0.0-prerelease.9" "web-component-tester": "^6.0.0"
}, },
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"