diff --git a/.travis.yml b/.travis.yml index c956824..b089e7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ sudo: required before_script: - npm install -g polymer-cli - polymer install --variants + - >- + npm run update-types && git diff --exit-code || (echo -e + '\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run + update-types".' &&false) env: global: - secure: >- @@ -23,4 +27,4 @@ script: - >- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default'; fi -dist: trusty \ No newline at end of file +dist: trusty diff --git a/package-lock.json b/package-lock.json index b636368..c78efb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,20 +4,76 @@ "lockfileVersion": 1, "dependencies": { "@polymer/gen-typescript-declarations": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@polymer/gen-typescript-declarations/-/gen-typescript-declarations-1.0.1.tgz", - "integrity": "sha512-FrnJ6oQQ9RNHP97YpbPfm915X7waWaNjIASU1rIhh6ZuWF4yOjQAccnXQShdfZAHUmCp2wlg6VtgbqRd6+4eQA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@polymer/gen-typescript-declarations/-/gen-typescript-declarations-1.1.1.tgz", + "integrity": "sha512-rUfH6USpiPYSHl2dC+/rGb3RYK8LPyqNhiuZCLv13F0fhYr01jdTogGuSphEoSLklm1gKRsDsrfZq7OvpzPYEg==", "dev": true, "requires": { "@types/doctrine": "0.0.3", "@types/fs-extra": "5.0.0", + "@types/glob": "5.0.35", "command-line-args": "5.0.1", "command-line-usage": "4.1.0", "doctrine": "2.1.0", "escodegen": "1.9.0", "fs-extra": "5.0.0", + "glob": "7.1.2", "minimatch": "3.0.4", - "polymer-analyzer": "3.0.0-pre.9" + "polymer-analyzer": "3.0.0-pre.10" + }, + "dependencies": { + "@types/node": { + "version": "6.0.97", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.97.tgz", + "integrity": "sha512-k3CDdCq8Uv8AZ7/bmGSSvlwbPDPhkkckSq8Y9ndXowv86m3k07PjG98SigpjVAY9EyHV9kiFldEV306xh4gkig==", + "dev": true + }, + "polymer-analyzer": { + "version": "3.0.0-pre.10", + "resolved": "https://registry.npmjs.org/polymer-analyzer/-/polymer-analyzer-3.0.0-pre.10.tgz", + "integrity": "sha1-9vCd15PdL0IomsAdoCb8q6ZfGYw=", + "dev": true, + "requires": { + "@types/babel-generator": "6.25.1", + "@types/babel-traverse": "6.25.3", + "@types/babel-types": "6.25.2", + "@types/babylon": "6.16.2", + "@types/chai-subset": "1.3.1", + "@types/chalk": "0.4.31", + "@types/clone": "0.1.30", + "@types/cssbeautify": "0.3.1", + "@types/doctrine": "0.0.1", + "@types/minimatch": "3.0.3", + "@types/node": "6.0.97", + "@types/parse5": "2.2.34", + "babel-generator": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "chalk": "1.1.3", + "clone": "2.1.1", + "cssbeautify": "0.3.1", + "doctrine": "2.1.0", + "dom5": "2.3.0", + "indent": "0.0.2", + "jsonschema": "1.2.2", + "minimatch": "3.0.4", + "parse5": "2.2.3", + "polymer-project-config": "3.8.1", + "shady-css-parser": "0.1.0", + "stable": "0.1.6", + "strip-indent": "2.0.0", + "vscode-uri": "1.0.1" + }, + "dependencies": { + "@types/doctrine": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.1.tgz", + "integrity": "sha1-uZny2fe0PKvgoaLzm8IDvH3K2p0=", + "dev": true + } + } + } } }, "@types/babel-generator": { @@ -92,6 +148,12 @@ "integrity": "sha1-6JLSk8ksnB0/mvcsFaVU+8fgiVo=", "dev": true }, + "@types/events": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@types/events/-/events-1.1.0.tgz", + "integrity": "sha512-y3bR98mzYOo0pAZuiLari+cQyiKk3UXRuT45h1RjhfeCzqkjaVsfZJNaxdgtk7/3tzOm1ozLTqEqMP3VbI48jw==", + "dev": true + }, "@types/fs-extra": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.0.tgz", @@ -101,6 +163,17 @@ "@types/node": "9.4.0" } }, + "@types/glob": { + "version": "5.0.35", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-5.0.35.tgz", + "integrity": "sha512-wc+VveszMLyMWFvXLkloixT4n0harUIVZjnpzztaZ0nKLuul7Z32iMt2fUFGAaZ4y1XWjFRMtCI5ewvyh4aIeg==", + "dev": true, + "requires": { + "@types/events": "1.1.0", + "@types/minimatch": "3.0.3", + "@types/node": "9.4.0" + } + }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -484,6 +557,26 @@ "universalify": "0.1.1" } }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, "globals": { "version": "9.18.0", "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", @@ -511,6 +604,22 @@ "integrity": "sha1-jHnwgBkFWbaHA0uEx676l9WpEdk=", "dev": true }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, "invariant": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", @@ -629,6 +738,15 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, "optionator": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", @@ -649,6 +767,12 @@ "integrity": "sha1-DE/EHBAAxea5PUiwP4CDg3g06fY=", "dev": true }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, "plylog": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/plylog/-/plylog-0.5.0.tgz", @@ -668,58 +792,6 @@ } } }, - "polymer-analyzer": { - "version": "3.0.0-pre.9", - "resolved": "https://registry.npmjs.org/polymer-analyzer/-/polymer-analyzer-3.0.0-pre.9.tgz", - "integrity": "sha512-yn1mcaRq9ufchMcsvC6DvVNWDUCyyyPoQkKuhbprWLiJ3ZTHJdzhZ2xhouk8aOkwVgj7xn8c3Ei3uh5/C6s5cw==", - "dev": true, - "requires": { - "@types/babel-generator": "6.25.1", - "@types/babel-traverse": "6.25.3", - "@types/babel-types": "6.25.2", - "@types/babylon": "6.16.2", - "@types/chai-subset": "1.3.1", - "@types/chalk": "0.4.31", - "@types/clone": "0.1.30", - "@types/cssbeautify": "0.3.1", - "@types/doctrine": "0.0.1", - "@types/minimatch": "3.0.3", - "@types/node": "6.0.96", - "@types/parse5": "2.2.34", - "babel-generator": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "chalk": "1.1.3", - "clone": "2.1.1", - "cssbeautify": "0.3.1", - "doctrine": "2.1.0", - "dom5": "2.3.0", - "indent": "0.0.2", - "jsonschema": "1.2.2", - "minimatch": "3.0.4", - "parse5": "2.2.3", - "polymer-project-config": "3.8.1", - "shady-css-parser": "0.1.0", - "stable": "0.1.6", - "strip-indent": "2.0.0", - "vscode-uri": "1.0.1" - }, - "dependencies": { - "@types/doctrine": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.1.tgz", - "integrity": "sha1-uZny2fe0PKvgoaLzm8IDvH3K2p0=", - "dev": true - }, - "@types/node": { - "version": "6.0.96", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.96.tgz", - "integrity": "sha512-fsOOY6tMQ3jCB2wD51XFDmmpgm4wVKkJECdcVRqapbJEa7awJDcr+SaH8toz+4r4KW8YQ3M7ybXMoSDo1QGewA==", - "dev": true - } - } - }, "polymer-project-config": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/polymer-project-config/-/polymer-project-config-3.8.1.tgz", @@ -903,6 +975,12 @@ "reduce-flatten": "1.0.1", "typical": "2.6.1" } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/package.json b/package.json index c4dc6be..74c037a 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ "type": "git", "url": "git://github.com/PolymerElements/iron-fit-behavior.git" }, - "license": "http://polymer.github.io/LICENSE.txt", + "license": "BSD-3-Clause", "devDependencies": { - "@polymer/gen-typescript-declarations": "^1.0.1", + "@polymer/gen-typescript-declarations": "^1.1.1", "bower": "^1.8.0" }, "scripts": { - "update-types": "rm -f *.d.ts **/*.d.ts && bower install && gen-typescript-declarations --outDir ." + "update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir ." } }