|
2 | 2 | "name": "back-loader", |
3 | 3 | "version": "0.1.0", |
4 | 4 | "description": "", |
5 | | - "main": "commitlint.config.js", |
| 5 | + "main": "release/index.d.ts", |
| 6 | + "unpkg": "release/back-loader.js", |
| 7 | + "author": "WittBulter(nanazuimeng123@gmail.com)", |
| 8 | + "homepage": "https://github.com/DhyanaChina/back-loader#readme", |
| 9 | + "license": "MIT", |
6 | 10 | "scripts": { |
7 | 11 | "test": "./node_modules/.bin/mocha", |
8 | | - "cover:local": "./node_modules/.bin/nyc mocha", |
| 12 | + "cover:local": "./node_modules/.bin/nyc mocha && open coverage/lcov-report/index.html", |
9 | 13 | "cover:hook": "./node_modules/.bin/nyc mocha && cat ./coverage/lcov.info | coveralls", |
10 | | - "ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run tsc:clean", |
11 | | - "ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run tsc:clean", |
12 | | - "release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/main/webpack.prod.js && npm run tsc:clean", |
13 | | - "tsc:clean": "find build -name '*.js' | xargs rm -f ", |
14 | | - "clearup": "rm -rf dist & rm -rf release", |
| 14 | + "ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run clean:tsc", |
| 15 | + "ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run clean:tsc", |
| 16 | + "release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/main/webpack.prod.js && npm run clean:tsc", |
| 17 | + "clean:tsc": "find build -name '*.js' | xargs rm -f", |
| 18 | + "clean:cover": "rm -rf coverage .nyc_output", |
| 19 | + "clean:build": "rm -rf dist release", |
| 20 | + "clean:all": "npm run clean:tsc & npm run clean:cover & npm run clean:build", |
15 | 21 | "commit": "node_modules/commitizen/bin/commitizen init cz-conventional-changelog --save --save-exact", |
16 | 22 | "commitmsg": "commitlint -e $GIT_PARAMS" |
17 | 23 | }, |
18 | 24 | "repository": { |
19 | 25 | "type": "git", |
20 | 26 | "url": "git+https://github.com/DhyanaChina/back-loader.git" |
21 | 27 | }, |
22 | | - "author": "WittBulter(nanazuimeng123@gmail.com)", |
23 | | - "license": "MIT", |
24 | 28 | "bugs": { |
25 | 29 | "url": "https://github.com/DhyanaChina/back-loader/issues" |
26 | 30 | }, |
27 | | - "homepage": "https://github.com/DhyanaChina/back-loader#readme", |
| 31 | + "files": [ |
| 32 | + "release" |
| 33 | + ], |
| 34 | + "keywords": [ |
| 35 | + "preload", |
| 36 | + "back-load", |
| 37 | + "script-loader" |
| 38 | + ], |
28 | 39 | "devDependencies": { |
29 | 40 | "@commitlint/config-angular": "^6.0.2", |
30 | 41 | "@types/chai": "^4.1.0", |
|
0 commit comments