-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
91 lines (91 loc) · 2.48 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "power-di",
"version": "2.4.41",
"description": "A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"files": [
"utils.js",
"utils.d.ts",
"react.js",
"react.d.ts",
"lib/**/*.js",
"es/**/*.js",
"**/*.d.ts",
"**/*.js.map",
"dist"
],
"scripts": {
"clean": "rm -rf es && rimraf -- dist lib/**/*.js lib/**/*.js.map lib/**/*.d.ts",
"rmjsmap": "rimraf -- **/*.js.map ./*.js.map test/*.js.map scripts/*.js.map",
"babel": "babel lib --out-dir lib",
"build:dist": "webpack --progress",
"test": "rimraf -- test/**/*.js && tsc && ava -v -s && npm run rmjsmap",
"test:prod": "npm run clean && tsc && npm run test",
"coverage": "nyc npm test",
"coverage:report": "nyc report --reporter=lcov",
"coverage:upload": "cat ./coverage/lcov.info | coveralls",
"report": "npm run coverage && npm run coverage:report",
"reinstall": "rimraf -- node_modules && npm install",
"prepublishOnly": "npm run test:prod && npm run clean && npm run es5",
"postpublish": "node scripts/published.js",
"es5": "rimraf -- es && tsc -p tsconfig.es5.json",
"es": "rimraf -- es && tsc -p tsconfig.es.json"
},
"ava": {
"files": [
"test/*.js"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/zhang740/power-di.git"
},
"author": "zhang740",
"license": "MIT",
"bugs": {
"url": "https://github.com/zhang740/power-di/issues"
},
"homepage": "https://github.com/zhang740/power-di#readme",
"keywords": [
"di",
"ts",
"ioc",
"react"
],
"peerDependencies": {
"reflect-metadata": ">=0.1.12"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.3.4",
"@types/co": "^4.6.2",
"@types/node": "^11.9.5",
"@types/react": "^16.x",
"@types/react-test-renderer": "^16.x",
"ava": "^3.7.1",
"co": "^4.6.0",
"coveralls": "^3.1.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"nyc": "^15.0.1",
"prettier": "^2.5.1",
"react": "^16.x",
"react-test-renderer": "^16.x",
"rimraf": "^3.0.2",
"tslint": "5.13.0",
"typescript": "~5.0",
"webpack": "^4.29.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged --allow-empty"
}
},
"lint-staged": {
"*.{js,ts,tsx,less}": [
"prettier --write"
]
}
}