Skip to content

Commit

Permalink
Improve typescript types
Browse files Browse the repository at this point in the history
  • Loading branch information
valotas committed Mar 3, 2018
1 parent fcf942c commit 33f86d4
Show file tree
Hide file tree
Showing 9 changed files with 1,083 additions and 851 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@
/_dev
/coverage
package-lock.json
/test/ts/**/*.js

# Additional bundles
/devtools.js
Expand Down
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -9,7 +9,7 @@
"minified:main": "dist/preact.min.js",
"types": "dist/preact.d.ts",
"scripts": {
"clean": "rimraf dist/ devtools.js devtools.js.map debug.js debug.js.map",
"clean": "rimraf dist/ devtools.js devtools.js.map debug.js debug.js.map test/ts/**/*.js",
"copy-flow-definition": "copyfiles -f src/preact.js.flow dist",
"copy-typescript-definition": "copyfiles -f src/preact.d.ts dist",
"build": "npm-run-all --silent clean transpile copy-flow-definition copy-typescript-definition strip optimize minify size",
Expand All @@ -27,7 +27,7 @@
"size": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size --raw dist/preact.min.js",
"test": "npm-run-all lint --parallel test:mocha test:karma test:ts test:flow test:size",
"test:flow": "flow check",
"test:ts": "tsc -p test/ts/",
"test:ts": "tsc -p test/ts/ && mocha --require babel-register test/ts/**/*-test.js",
"test:mocha": "mocha --recursive --require babel-register test/shared test/node",
"test:karma": "karma start test/karma.conf.js --single-run",
"test:mocha:watch": "npm run test:mocha -- --watch",
Expand Down Expand Up @@ -74,13 +74,16 @@
},
"homepage": "https://github.com/developit/preact",
"devDependencies": {
"@types/chai": "^3.5.2",
"@types/mocha": "^2.2.43",
"@types/node": "^8.0.44",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.0.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.5.1",
"babel-preset-env": "^1.6.1",
"bundlesize": "^0.13.2",
"chai": "^3.4.1",
"copyfiles": "^1.0.0",
Expand Down Expand Up @@ -117,7 +120,7 @@
"rollup-plugin-node-resolve": "^3.0.0",
"sinon": "^2.2.0",
"sinon-chai": "^2.8.0",
"typescript": "^2.2.2",
"typescript": "^2.5.3",
"uglify-js": "^2.7.5",
"webpack": "^2.4.1"
},
Expand Down

0 comments on commit 33f86d4

Please sign in to comment.