Skip to content

Commit

Permalink
add typegen for 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Mar 13, 2019
1 parent 217bd4d commit 43f7b76
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
"main": "build/LineUpJS.js",
"unpkg": "build/LineUpJS.js",
"module": "src/index.js",
"types": "src/index.d.ts",
"types": "build/types/2.7/index.d.ts",
"typesVersions": {
">=3.1": {
"*": ["src/*"]
}
},
"sideEffects": [
"*.scss",
"*.css"
Expand Down Expand Up @@ -68,7 +73,8 @@
"dev": "npm run clean && npm run compile:dev && npm run build:dev",
"watch": "webpack --mode development --watch --devtool source-map",
"start": "webpack-dev-server --mode development --devtool source-map",
"predist": "npm run build",
"types:27": "cd typeGen/ts27 && npm i && npm run compile",
"predist": "npm run build && npm run types:27",
"dist": "mkdirp dist && cross-zip ./build ./dist/lineupjs.zip",
"postdist": "npm run docs && cross-zip ./build/docs ../dist/lineupjs_docs.zip",
"preversion": "npm test",
Expand Down
12 changes: 12 additions & 0 deletions typeGen/ts27/package-lock.json

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

8 changes: 8 additions & 0 deletions typeGen/ts27/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"devDependencies": {
"typescript": "~2.7.2"
},
"scripts": {
"compile": "tsc -p ."
}
}
9 changes: 9 additions & 0 deletions typeGen/ts27/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": true,
"declarationDir": "../../build/types/2.7/",
"skipDefaultLibCheck": true,
"skipLibCheck": true
}
}

0 comments on commit 43f7b76

Please sign in to comment.