Merge pull request #810 from webcomponents/npm-update-and-cleaup

Update npm dependencies
This commit is contained in:
Steve Orvell
2017-07-14 16:23:23 -07:00
committed by GitHub
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',
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));
});
});
});

View File

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