mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
build from npm
This commit is contained in:
@@ -13,4 +13,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Polyfills loaded: Custom Elements ES5 Shim
|
||||
*/
|
||||
|
||||
import '../bower_components/custom-elements/src/native-shim.js'
|
||||
import '../node_modules/@webcomponents/custom-elements/src/native-shim.js'
|
||||
|
||||
@@ -14,8 +14,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Used in: Safari 10, Firefox once SD is shipped
|
||||
*/
|
||||
|
||||
import '../bower_components/html-imports/src/html-imports.js'
|
||||
import '../bower_components/custom-elements/src/custom-elements.js'
|
||||
import '../node_modules/@webcomponents/html-imports/src/html-imports.js'
|
||||
import '../node_modules/@webcomponents/custom-elements/src/custom-elements.js'
|
||||
|
||||
import '../src/post-polyfill.js'
|
||||
import '../src/unresolved.js'
|
||||
|
||||
@@ -14,7 +14,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Used in: Safari Tech Preview
|
||||
*/
|
||||
|
||||
import '../bower_components/html-imports/src/html-imports.js'
|
||||
import '../node_modules/@webcomponents/html-imports/src/html-imports.js'
|
||||
|
||||
import '../src/post-polyfill.js'
|
||||
import '../src/unresolved.js'
|
||||
|
||||
@@ -14,9 +14,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Used in: Safari 9, Firefox, Edge
|
||||
*/
|
||||
|
||||
import '../bower_components/html-imports/src/html-imports.js'
|
||||
import '../bower_components/shadydom/src/shadydom.js'
|
||||
import '../bower_components/custom-elements/src/custom-elements.js'
|
||||
import '../bower_components/shadycss/entrypoints/scoping-shim.js'
|
||||
import '../node_modules/@webcomponents/html-imports/src/html-imports.js'
|
||||
import '../node_modules/@webcomponents/shadydom/src/shadydom.js'
|
||||
import '../node_modules/@webcomponents/custom-elements/src/custom-elements.js'
|
||||
import '../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js'
|
||||
import '../src/post-polyfill.js'
|
||||
import '../src/unresolved.js'
|
||||
|
||||
@@ -14,13 +14,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Used in: IE 11
|
||||
*/
|
||||
|
||||
import '../bower_components/webcomponents-platform/webcomponents-platform.js'
|
||||
import '../bower_components/template/template.js'
|
||||
import '../bower_components/es6-promise/dist/es6-promise.auto.min.js'
|
||||
import '../bower_components/html-imports/src/html-imports.js'
|
||||
import '../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js'
|
||||
import '../node_modules/@webcomponents/template/template.js'
|
||||
import '../node_modules/es6-promise/dist/es6-promise.auto.min.js'
|
||||
import '../node_modules/@webcomponents/html-imports/src/html-imports.js'
|
||||
import '../src/pre-polyfill.js'
|
||||
import '../bower_components/shadydom/src/shadydom.js'
|
||||
import '../bower_components/custom-elements/src/custom-elements.js'
|
||||
import '../bower_components/shadycss/entrypoints/scoping-shim.js'
|
||||
import '../node_modules/@webcomponents/shadydom/src/shadydom.js'
|
||||
import '../node_modules/@webcomponents/custom-elements/src/custom-elements.js'
|
||||
import '../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js'
|
||||
import '../src/post-polyfill.js'
|
||||
import '../src/unresolved.js'
|
||||
|
||||
@@ -14,9 +14,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* Used in: Safari 9, Firefox, Edge
|
||||
*/
|
||||
|
||||
import '../bower_components/shadydom/src/shadydom.js'
|
||||
import '../bower_components/custom-elements/src/custom-elements.js'
|
||||
import '../bower_components/shadycss/entrypoints/scoping-shim.js'
|
||||
import '../node_modules/@webcomponents/shadydom/src/shadydom.js'
|
||||
import '../node_modules/@webcomponents/custom-elements/src/custom-elements.js'
|
||||
import '../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js'
|
||||
|
||||
// NOTE: this is a load-bearing IIFE for Closure
|
||||
(function() {
|
||||
|
||||
27
gulpfile.js
27
gulpfile.js
@@ -20,7 +20,6 @@ const rename = require('gulp-rename');
|
||||
const rollup = require('rollup-stream');
|
||||
const source = require('vinyl-source-stream');
|
||||
const del = require('del');
|
||||
const bower = require('bower');
|
||||
const runseq = require('run-sequence');
|
||||
const closure = require('google-closure-compiler').gulp();
|
||||
const babel = require('rollup-plugin-babel');
|
||||
@@ -60,10 +59,10 @@ function closurify(sourceName, fileName) {
|
||||
rewrite_polyfills: false,
|
||||
externs: [
|
||||
'externs/webcomponents.js',
|
||||
'bower_components/custom-elements/externs/custom-elements.js',
|
||||
'bower_components/html-imports/externs/html-imports.js',
|
||||
'bower_components/shadycss/externs/shadycss-externs.js',
|
||||
'bower_components/shadydom/externs/shadydom.js'
|
||||
'node_modules/@webcomponents/custom-elements/externs/custom-elements.js',
|
||||
'node_modules/@webcomponents/html-imports/externs/html-imports.js',
|
||||
'node_modules/@webcomponents/shadycss/externs/shadycss-externs.js',
|
||||
'node_modules/@webcomponents/shadydom/externs/shadydom.js'
|
||||
]
|
||||
};
|
||||
|
||||
@@ -146,19 +145,7 @@ gulp.task('debugify-ce-es5-adapter', () => {
|
||||
return debugify('custom-elements-es5-adapter', '', {plugins: [babel(babelOptions)]});
|
||||
});
|
||||
|
||||
gulp.task('refresh-bower', () => {
|
||||
return del('bower_components').then(() => {
|
||||
return new Promise((resolve, reject) => {
|
||||
bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('default', (cb) => {
|
||||
runseq('refresh-bower', 'closure', cb);
|
||||
});
|
||||
|
||||
gulp.task('clean-builds', () => {
|
||||
gulp.task('clean', () => {
|
||||
return del(['custom-elements-es5-adapter.js{,.map}', 'webcomponents*.js{,.map}', '!webcomponents-loader.js']);
|
||||
});
|
||||
|
||||
@@ -171,7 +158,7 @@ gulp.task('debug', (cb) => {
|
||||
'debugify-sd-ce',
|
||||
'debugify-ce-es5-adapter'
|
||||
];
|
||||
runseq('clean-builds', tasks, cb);
|
||||
runseq('clean', tasks, cb);
|
||||
});
|
||||
|
||||
gulp.task('closure', (cb) => {
|
||||
@@ -183,5 +170,5 @@ gulp.task('closure', (cb) => {
|
||||
'closurify-sd-ce',
|
||||
'debugify-ce-es5-adapter'
|
||||
];
|
||||
runseq('clean-builds', ...tasks, cb);
|
||||
runseq('clean', ...tasks, cb);
|
||||
});
|
||||
@@ -28,9 +28,9 @@
|
||||
"homepage": "https://webcomponents.org/polyfills",
|
||||
"devDependencies": {
|
||||
"@webcomponents/custom-elements": "^1.0.0",
|
||||
"@webcomponents/html-imports": "^1.0.0",
|
||||
"@webcomponents/shadycss": "^1.0.0",
|
||||
"@webcomponents/shadydom": "^1.0.0",
|
||||
"@webcomponents/html-imports": "^1.0.1",
|
||||
"@webcomponents/shadycss": "^1.0.2",
|
||||
"@webcomponents/shadydom": "^1.0.1",
|
||||
"@webcomponents/template": "^1.0.0",
|
||||
"@webcomponents/webcomponents-platform": "^1.0.0",
|
||||
"babel-preset-babili": "^0.1.4",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user