Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #84 from PolymerElements/gen-typescript-declarations
Browse files Browse the repository at this point in the history
Check type declarations on Travis.
  • Loading branch information
aomarks authored Feb 7, 2018
2 parents 67271ab + 8a5b6f2 commit db0b76d
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 60 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand All @@ -23,4 +27,4 @@ script:
- >-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default';
fi
dist: trusty
dist: trusty
190 changes: 134 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
}
}

0 comments on commit db0b76d

Please sign in to comment.