This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
61 lines (61 loc) · 2.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "typed-react",
"version": "3.4.1",
"description": "A binding layer between React and TypeScript",
"main": "index.js",
"files": [
"typed-react.d.ts",
"**/*.js",
"!**/*_test.js",
"!build/**/*.js",
"!coverage/**/*.js",
"!node_modules/**/*.js"
],
"scripts": {
"prebundle": "npm run compile && mv build/src/** .",
"bundle": "dts-generator --name $npm_package_name --main ${npm_package_name}/index --baseDir . --exclude node_modules/dts-generator/node_modules/typescript/bin/lib.es6.d.ts -out ${npm_package_name}.d.ts *.d.ts",
"clean": "rm -rf build coverage *.js *.d.ts",
"precompile": "npm run clean",
"compile": "find src test typings -name \"*.ts\" | xargs tsc --declaration --module commonjs --target es5 --noImplicitAny --outDir build",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "find src test -name \"*.ts\" | sed 's/^/--file=/g' | xargs tslint",
"setup": "rm -rf node_modules typings && npm install && npm run typings",
"pretest": "npm run compile -- --sourceMap && 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/' {} \\;",
"test": "istanbul cover _mocha -- --reporter ${MOCHA_REPORTER-nyan} --slow 10 --ui tdd --recursive build/**/*_test.js",
"posttest": "npm run lint && istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"typings": "tsd reinstall && tsd rebundle",
"update": "git fetch && git merge origin master && npm run setup"
},
"repository": {
"type": "git",
"url": "https://github.com/Asana/typed-react.git"
},
"keywords": [
"react",
"typescript"
],
"author": "Asana",
"license": "MIT",
"bugs": {
"url": "https://github.com/Asana/typed-react/issues"
},
"homepage": "https://github.com/Asana/typed-react",
"peerDependencies": {
"react": ">=0.12"
},
"devDependencies": {
"chai": "^2.3.0",
"coveralls": "^2.11.2",
"dts-generator": "^1.4.1",
"istanbul": "^0.3.14",
"mocha": "^2.2.4",
"sinon": "^1.14.1",
"source-map-support": "^0.2.10",
"tsd": "^0.6.0-beta.5",
"tslint": "^2.1.1",
"typescript": "^1.4.1"
},
"typescript": {
"definition": "typed-react.d.ts"
}
}