Skip to content

Commit

Permalink
Merge pull request #59 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 dbf3d53 + 3c60703 commit 829bedc
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 59 deletions.
4 changes: 4 additions & 0 deletions .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 Down
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-localstorage.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 829bedc

Please sign in to comment.