Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
Generate build files on prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Jun 16, 2018
1 parent 62a51a4 commit 4e96d00
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 92 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules/
shadydom.min.js*
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -6,11 +6,11 @@ addons:
firefox: latest
chrome: stable
before_script:
- npm run build
- npm run lint
script:
- xvfb-run wct --npm -l chrome
- xvfb-run wct --npm -l firefox
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --npm -s 'windows 10/microsoftedge@15' -s 'windows 10/microsoftedge@17' -s 'windows 8.1/internet explorer@11' -s 'os x 10.11/safari@9' -s 'os x 10.12/safari@10' -s 'os x 10.13/safari@11' -s 'Linux/chrome@41'; fi
- xvfb-run wct
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'windows 10/microsoftedge@15' -s 'windows 10/microsoftedge@17' -s 'windows 8.1/internet explorer@11' -s 'os x 10.11/safari@9' -s 'os x 10.12/safari@10' -s 'os x 10.13/safari@11' -s 'Linux/chrome@41'; fi
env:
global:
- secure: sXR3QH57zDgwBluJLsz2I8mz22Nuw59TtGvvUFh64hv6PoA3X9GI0uYYaZyVDFfqoOKsjvNnxe2OQDa/mdyWrmAHW8W9DmT0jYJ35HABT7LgKFcOdvdbGhv+/0CxWOsV8aanRNMU30QXV9/+DOg5Q+P0v5m6uxkSjAKZLHEDSQu5RKlHYr5SJfLt8ODdT4onrcmUOi6I1OGDD1HEwMo7EEOst5O5JqvuqW5PU1MqE2v+K1V6ENMqwikgrHcFZ9r0MeTk7kpC4Vp/Fe0mc1M26irDrwGCZJHl8lZKxx2unCGQVIwGEOv4XzyvKXi5VRO3cMt7EZPkGtV7yjcnElIrfjWYDv7PnyPPmDigQIh1uN7iocgLwT2JgtylHGCZwRWOuhxWcmPejpDnjYBSq8mPescGZE2yuKwexlxTo4QeCBrHzcyYWt6bHRorAdVYaTLKcIdx5UGzu0gLJ4iLnkzEcu97MiKVN0md3TaEF0XcTfXVhCacF+p1WXQ+XIcrNMhmn+tx0pkBTTdn6G5Mz89+R8aQFOIblQJNlbhsbhLgJYW7ov0Grx3tmaPAW0/uErcg3WHdRUEIa2ibsDUNvYmBKwyI1ocroNnF68g/PYj/PNUTcfdcccn3iBDtREfRBM+Cvm6Nted2CcJB6BRYaYaYJ8Pt2kTGjUI2nrwVKtyrlNY=
Expand Down
19 changes: 19 additions & 0 deletions LICENSE.md
@@ -0,0 +1,19 @@
# License

Everything in this repo is BSD style license unless otherwise specified.

Copyright (c) 2015 The Polymer Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -27,10 +27,14 @@
},
"scripts": {
"build": "gulp",
"test": "wct --npm",
"test": "wct",
"lint": "eslint src",
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install",
"prepack": "npm run build"
},
"files": [
"shadydom.min.js*"
],
"homepage": "https://webcomponents.org/polyfills",
"devDependencies": {
"@webcomponents/custom-elements": "^1.1.2",
Expand Down
86 changes: 0 additions & 86 deletions shadydom.min.js

This file was deleted.

1 change: 0 additions & 1 deletion shadydom.min.js.map

This file was deleted.

6 changes: 6 additions & 0 deletions wct.conf.json
@@ -1,10 +1,16 @@
{
"suites": ["tests/runner.html"],
"npm": true,
"plugins": {
"local": {
"browserOptions": {
"chrome": [
"headless",
"disable-gpu",
"no-sandbox"
],
"firefox": [
"-headless"
]
}
}
Expand Down

0 comments on commit 4e96d00

Please sign in to comment.