Skip to content

Commit 942a5f7

Browse files
committed
typescriptify test
1 parent d3c6cbb commit 942a5f7

File tree

10 files changed

+1122
-1942
lines changed

10 files changed

+1122
-1942
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ public/app.js
4646
gh-pages/
4747
wiki/
4848
dist
49+
lib

package.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
"url": "git+https://github.com/jcouyang/react-most.git"
88
},
99
"main": "lib/react-most.js",
10-
"directories": {
11-
"lib": "./lib"
12-
},
10+
"typings": "types/react-most.d.ts",
11+
"files": [
12+
"src",
13+
"lib",
14+
"types"
15+
],
1316
"scripts": {
1417
"license": "(cat LICENSE.txt; cat react-most.js) > react-most.licensed.js && mv react-most.licensed.js react-most.js",
1518
"build": "tsc -p .",
16-
"prebrowser": "npm run build",
17-
"browser": "browserify -r react -r most -r most-subject -o dist/vendor.js && browserify -s Most -x react -x most -x most-subject react-most.js -o dist/react-most.js",
18-
"test": "jest --coverage",
19+
"test": "jest",
1920
"prepublish": "npm run build",
2021
"testWDebugger": "node --harmony $(which bugger) ./node_modules/jest-cli/bin/jest.js --runInBand"
2122
},
@@ -29,29 +30,30 @@
2930
"react": "^15.5.4"
3031
},
3132
"devDependencies": {
33+
"@types/jest": "^19.2.3",
3234
"@types/node": "^7.0.18",
3335
"@types/react": "^15.0.22",
34-
"babel": "^6.1.18",
35-
"babel-cli": "^6.2.0",
36-
"babel-jest": "^19.0.0",
37-
"babel-plugin-transform-react-jsx": "^6.1.18",
38-
"babel-preset-es2015": "^6.1.18",
39-
"babelify": "^7.2.0",
40-
"jest": "^19.0.0",
41-
"jest-cli": "^19.0.1",
36+
"jest": "^20.0.0",
4237
"lodash": "^4.0.0",
4338
"react": "^15.5.4",
4439
"react-addons-test-utils": "^15.2.0",
4540
"react-dom": "^15.5.4",
4641
"react-most-spec": "^0.2.3",
4742
"redux": "^3.0.4",
43+
"ts-jest": "^20.0.2",
4844
"typescript": "^2.3.2"
4945
},
5046
"jest": {
47+
"transform": {
48+
"^.+\\.(tsx|ts)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
49+
},
5150
"moduleFileExtensions": [
52-
"js",
53-
"jsx",
54-
"es6"
51+
"ts",
52+
"tsx",
53+
"js"
54+
],
55+
"testMatch": [
56+
"**/__tests__/*.(ts|tsx|js)"
5557
],
5658
"roots": [
5759
"src"

0 commit comments

Comments
 (0)