Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Commit 96077ac

Browse files
committed
copy htmlimports-lite from webcomponentsjs and related tests
0 parents  commit 96077ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3052
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
bower_components
3+
4+
npm-debug.log*

gulpfile.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* @license
3+
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7+
* Code distributed by Google as part of the polymer project is also
8+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9+
*/
10+
11+
'use strict';
12+
13+
const compilerPackage = require('google-closure-compiler');
14+
const gulp = require('gulp');
15+
const sourcemaps = require('gulp-sourcemaps');
16+
17+
const closureCompiler = compilerPackage.gulp();
18+
19+
gulp.task('default', () => {
20+
return gulp.src('./src/html-imports.js', {base: './'})
21+
.pipe(sourcemaps.init())
22+
.pipe(closureCompiler({
23+
compilation_level: 'ADVANCED',
24+
warning_level: 'VERBOSE',
25+
language_in: 'ECMASCRIPT6_STRICT',
26+
language_out: 'ECMASCRIPT5_STRICT',
27+
js_output_file: 'html-imports.min.js',
28+
new_type_inf: true,
29+
rewrite_polyfills: false,
30+
}))
31+
.pipe(sourcemaps.write('/'))
32+
.pipe(gulp.dest('./'));
33+
});

html-imports.min.js

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html-imports.min.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@webcomponents/html-imports",
3+
"version": "0.0.1",
4+
"description": "HTML Imports Polyfill",
5+
"main": "html-imports.min.js",
6+
"directories": {
7+
"test": "tests"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/webcomponents/html-imports.git"
12+
},
13+
"author": "The Polymer Authors",
14+
"license": "BSD-3-Clause",
15+
"bugs": {
16+
"url": "https://github.com/webcomponents/html-imports/issues"
17+
},
18+
"scripts": {
19+
"build": "gulp",
20+
"test": "wct"
21+
},
22+
"homepage": "http://webcomponents.org",
23+
"devDependencies": {
24+
"google-closure-compiler": "^20160822.1.0",
25+
"gulp": "^3.8.8",
26+
"gulp-sourcemaps": "^1.6.0",
27+
"web-component-tester": "^4.0.1"
28+
}
29+
}

0 commit comments

Comments
 (0)