|
4 | 4 | "description": "A binding layer between React and TypeScript", |
5 | 5 | "main": "index.js", |
6 | 6 | "files": [ |
7 | | - "*.js", |
8 | | - "*.d.ts" |
| 7 | + "typed-react.d.ts", |
| 8 | + "**/*.js", |
| 9 | + "!**/*_test.js", |
| 10 | + "!build/**/*.js", |
| 11 | + "!coverage/**/*.js", |
| 12 | + "!node_modules/**/*.js" |
9 | 13 | ], |
10 | 14 | "scripts": { |
11 | | - "bundle": "gulp bundle", |
12 | | - "coverage": "cat ./coverage/lcov.info | coveralls", |
13 | | - "doc": "gulp doc", |
14 | | - "test": "gulp test", |
| 15 | + "prebundle": "npm run compile && mv build/src/** .", |
| 16 | + "bundle": "dts-generator --name $npm_package_name --main index.d.ts --baseDir . --exclude node_modules/dts-generator/node_modules/typescript/bin/lib.es6.d.ts -out ${npm_package_name}.d.ts *.d.ts", |
| 17 | + "clean": "rm -rf build coverage *.js *.d.ts", |
| 18 | + "precompile": "npm run clean", |
| 19 | + "compile": "find src test typings -name \"*.ts\" | xargs tsc --declaration --module commonjs --target es5 --noImplicitAny --outDir build", |
| 20 | + "coveralls": "cat ./coverage/lcov.info | coveralls", |
| 21 | + "prelint": "npm run compile -- --sourceMap", |
| 22 | + "lint": "find src test -name \"*.ts\" | sed 's/^/--file=/g' | xargs tslint", |
| 23 | + "pretest": "npm run lint && find build -type f -name *.js -exec sed -i .bak -e '1s/^var __extends/\\/\\* istanbul ignore next \\*\\/\rvar __extends/; 1s/^/require(\"source-map-support\").install();\r/' {} \\;", |
| 24 | + "test": "istanbul cover _mocha -- --reporter ${MOCHA_REPORTER-nyan} --slow 10 --ui tdd --recursive build/**/*_test.js", |
| 25 | + "posttest": "istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100", |
15 | 26 | "typings": "tsd reinstall && tsd rebundle" |
16 | 27 | }, |
17 | 28 | "repository": { |
|
32 | 43 | "react": ">=0.12" |
33 | 44 | }, |
34 | 45 | "devDependencies": { |
35 | | - "chai": "^2.1.1", |
| 46 | + "chai": "^2.3.0", |
36 | 47 | "coveralls": "^2.11.2", |
37 | | - "del": "^1.1.1", |
38 | | - "dts-bundle": "^0.2.0", |
39 | | - "event-stream": "^3.1.7", |
40 | | - "gulp": "^3.8.8", |
41 | | - "gulp-gh-pages": "^0.4.0", |
42 | | - "gulp-istanbul": "^0.6.0", |
43 | | - "gulp-mocha": "^2.0.0", |
44 | | - "gulp-replace": "^0.5.0", |
45 | | - "gulp-tslint": "^1.3.0", |
46 | | - "gulp-typedoc": "^1.1.0", |
47 | | - "gulp-typescript": "^2.1.0", |
48 | | - "react": "^0.13.0", |
| 48 | + "dts-generator": "^1.4.1", |
| 49 | + "istanbul": "^0.3.14", |
| 50 | + "mocha": "^2.2.4", |
| 51 | + "sinon": "^1.14.1", |
| 52 | + "source-map-support": "^0.2.10", |
49 | 53 | "tsd": "^0.6.0-beta.5", |
50 | | - "typescript-require": "https://github.com/pspeter3/typescript-require/releases/download/v1.0.6/typescript-require-1.0.6.tgz" |
| 54 | + "tslint": "^2.1.1", |
| 55 | + "typescript": "^1.4.1" |
51 | 56 | }, |
52 | 57 | "typescript": { |
53 | 58 | "definition": "typed-react.d.ts" |
|
0 commit comments