|
| 1 | +{ |
| 2 | + "name": "template", |
| 3 | + "officialName": "template", |
| 4 | + "version": "1.0.0", |
| 5 | + "description": "template repo for hustcc", |
| 6 | + "license": "MIT", |
| 7 | + "main": "lib/index.js", |
| 8 | + "module": "esm/index.js", |
| 9 | + "browser": "dist/template.min.js", |
| 10 | + "types": "lib/index.d.ts", |
| 11 | + "files": [ |
| 12 | + "src", |
| 13 | + "lib", |
| 14 | + "esm", |
| 15 | + "dist" |
| 16 | + ], |
| 17 | + "scripts": { |
| 18 | + "clean": "rimraf -rf lib esm dist", |
| 19 | + "lint-staged": "lint-staged", |
| 20 | + "size": "limit-size", |
| 21 | + "test": "jest", |
| 22 | + "build:umd": "rimraf ./dist && rollup -c && npm run size", |
| 23 | + "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib", |
| 24 | + "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm", |
| 25 | + "build": "npm run build:cjs && npm run build:esm && npm run build:umd", |
| 26 | + "prepublishOnly": "npm run build" |
| 27 | + }, |
| 28 | + "keywords": [ |
| 29 | + "template" |
| 30 | + ], |
| 31 | + "devDependencies": { |
| 32 | + "@commitlint/cli": "^11.0.0", |
| 33 | + "@types/jest": "^26.0.20", |
| 34 | + "husky": "^5.0.9", |
| 35 | + "jest": "^26.6.3", |
| 36 | + "limit-size": "^0.1.4", |
| 37 | + "lint-staged": "^10.5.4", |
| 38 | + "prettier": "^2.2.1", |
| 39 | + "rimraf": "^3.0.2", |
| 40 | + "rollup": "^2.39.0", |
| 41 | + "rollup-plugin-node-resolve": "^5.2.0", |
| 42 | + "rollup-plugin-typescript": "^1.0.1", |
| 43 | + "rollup-plugin-uglify": "^6.0.4", |
| 44 | + "ts-jest": "^26.5.1", |
| 45 | + "typescript": "^4.1.5" |
| 46 | + }, |
| 47 | + "jest": { |
| 48 | + "preset": "ts-jest", |
| 49 | + "collectCoverage": true, |
| 50 | + "testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$", |
| 51 | + "collectCoverageFrom": [ |
| 52 | + "src/**/*.ts" |
| 53 | + ] |
| 54 | + }, |
| 55 | + "lint-staged": { |
| 56 | + "*.{ts,tsx}": [ |
| 57 | + "prettier --write", |
| 58 | + "git add" |
| 59 | + ] |
| 60 | + }, |
| 61 | + "limit-size": [ |
| 62 | + { |
| 63 | + "path": "dist/template.min.js", |
| 64 | + "limit": "500b", |
| 65 | + "gzip": true |
| 66 | + }, |
| 67 | + { |
| 68 | + "path": "dist/template.min.js", |
| 69 | + "limit": "1 Kb" |
| 70 | + } |
| 71 | + ], |
| 72 | + "husky": { |
| 73 | + "hooks": { |
| 74 | + "pre-commit": "npm run lint-staged", |
| 75 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 76 | + } |
| 77 | + }, |
| 78 | + "author": { |
| 79 | + "name": "hustcc", |
| 80 | + "url": "https://atool.vip/" |
| 81 | + }, |
| 82 | + "repository": { |
| 83 | + "type": "git", |
| 84 | + "url": "https://github.com/hustcc/template" |
| 85 | + }, |
| 86 | + "bugs": { |
| 87 | + "url": "https://github.com/hustcc/template/issues" |
| 88 | + } |
| 89 | +} |
0 commit comments