Skip to content

Commit

Permalink
Add TypeScript declarations to prism-element. (#39)
Browse files Browse the repository at this point in the history
* Add type declaration generation config.
* Generate minimal package.json from bower.json
* Update and/or configure type declarations.
  • Loading branch information
aomarks authored Mar 8, 2018
1 parent 32c2b8f commit b5daeaa
Show file tree
Hide file tree
Showing 8 changed files with 1,102 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bower_components*
bower-*.json
node_modules
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ addons:
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)
script:
- xvfb-run polymer test
- >-
Expand Down
9 changes: 9 additions & 0 deletions gen-tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"removeReferences": [
"../prism/prism.d.ts",
"../prism/themes/prism.d.ts"
],
"renameTypes": {
"Prism.Lang": "{}"
}
}
Loading

0 comments on commit b5daeaa

Please sign in to comment.