1 | {
|
2 | "name": "jest-chance",
|
3 | "version": "0.1.6",
|
4 | "description": "Random seed generator for chancejs with jest",
|
5 | "main": "dist/index.js",
|
6 | "types": "src/index.d.ts",
|
7 | "private": false,
|
8 | "repository": "https://github.com/meza/jest-chance",
|
9 | "license": "MIT",
|
10 | "scripts": {
|
11 | "ci": "yarn build && yarn test:coverage && codecov",
|
12 | "fix-lint": "tslint --fix -p .",
|
13 | "test": "jest --coverage && yarn build:production",
|
14 | "test:coverage": "jest --coverage && yarn build:production",
|
15 | "build": "tsc",
|
16 | "build:production": "NODE_ENV=production tsc",
|
17 | "release": "standard-version -s && git push --follow-tags --no-verify origin master"
|
18 | },
|
19 | "husky": {
|
20 | "hooks": {
|
21 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
22 | "pre-commit": "yarn build && yarn fix-lint",
|
23 | "pre-push": "yarn build && yarn test:coverage",
|
24 | "post-merge": "install-deps-postmerge"
|
25 | }
|
26 | },
|
27 | "dependencies": {
|
28 | "chance": "^1.0.18"
|
29 | },
|
30 | "browserslist": [
|
31 | "maintained node versions"
|
32 | ],
|
33 | "devDependencies": {
|
34 | "@babel/core": "^7.3.4",
|
35 | "@babel/plugin-proposal-class-properties": "^7.3.4",
|
36 | "@babel/plugin-proposal-decorators": "^7.0.0",
|
37 | "@babel/plugin-proposal-do-expressions": "^7.0.0",
|
38 | "@babel/plugin-proposal-export-default-from": "^7.0.0",
|
39 | "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
40 | "@babel/plugin-proposal-function-bind": "^7.0.0",
|
41 | "@babel/plugin-proposal-function-sent": "^7.0.0",
|
42 | "@babel/plugin-proposal-json-strings": "^7.0.0",
|
43 | "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
|
44 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
|
45 | "@babel/plugin-proposal-numeric-separator": "^7.0.0",
|
46 | "@babel/plugin-proposal-object-rest-spread": "^7.3.4",
|
47 | "@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
48 | "@babel/plugin-proposal-pipeline-operator": "^7.3.2",
|
49 | "@babel/plugin-proposal-throw-expressions": "^7.0.0",
|
50 | "@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
51 | "@babel/plugin-syntax-import-meta": "^7.0.0",
|
52 | "@babel/polyfill": "^7.0.0",
|
53 | "@babel/preset-env": "^7.3.4",
|
54 | "@babel/preset-typescript": "^7.3.3",
|
55 | "@babel/register": "^7.0.0",
|
56 | "@commitlint/config-conventional": "^7.5.0",
|
57 | "@commitlint/prompt-cli": "^7.5.0",
|
58 | "@types/chance": "^1.0.1",
|
59 | "@types/jest": "^24.0.9",
|
60 | "babel-core": "^6.26.3",
|
61 | "babel-loader": "^8.0.5",
|
62 | "babel-preset-env": "^1.7.0",
|
63 | "chance": "^1.0.18",
|
64 | "clean-webpack-plugin": "^2.0.0",
|
65 | "codecov": "^3.2.0",
|
66 | "commitlint": "^7.5.2",
|
67 | "husky": "^1.3.1",
|
68 | "install-deps-postmerge": "^1.0.2",
|
69 | "jest": "^24.3.1",
|
70 | "jest-express": "^1.10.0",
|
71 | "jest-extended": "^0.11.1",
|
72 | "standard-version": "^5.0.1",
|
73 | "terser-webpack-plugin": "^1.2.3",
|
74 | "ts-jest": "^24.0.0",
|
75 | "tslint": "^5.14.0",
|
76 | "tslint-loader": "^3.5.4",
|
77 | "typescript": "^3.3.3333",
|
78 | "webpack": "^4.29.6",
|
79 | "webpack-cli": "^3.2.3",
|
80 | "webpack-dev-server": "^3.2.1",
|
81 | "yarn": "^1.13.0"
|
82 | },
|
83 | "commitlint": {
|
84 | "extends": [
|
85 | "@commitlint/config-conventional"
|
86 | ],
|
87 | "rules": {
|
88 | "header-max-length": [
|
89 | 0
|
90 | ],
|
91 | "subject-case": [
|
92 | 0
|
93 | ],
|
94 | "type-enum": [
|
95 | 2,
|
96 | "always",
|
97 | [
|
98 | "build",
|
99 | "re",
|
100 | "chore",
|
101 | "ci",
|
102 | "docs",
|
103 | "feat",
|
104 | "fix",
|
105 | "perf",
|
106 | "refactor",
|
107 | "revert",
|
108 | "style",
|
109 | "test"
|
110 | ]
|
111 | ]
|
112 | }
|
113 | },
|
114 | "jest": {
|
115 | "moduleFileExtensions": [
|
116 | "ts",
|
117 | "js",
|
118 | "json"
|
119 | ],
|
120 | "transform": {
|
121 | "^.+\\.(ts|tsx)$": "ts-jest"
|
122 | },
|
123 | "testMatch": [
|
124 | "**/?(*.)test.ts?(x)"
|
125 | ],
|
126 | "coverageThreshold": {
|
127 | "global": {
|
128 | "branches": 100,
|
129 | "functions": 100,
|
130 | "lines": 100,
|
131 | "statements": 100
|
132 | }
|
133 | },
|
134 | "collectCoverageFrom": [
|
135 | "src/**/*.{ts,tsx}",
|
136 | "!**/*.d.ts",
|
137 | "!**/cypress/**",
|
138 | "!**/node_modules/**",
|
139 | "!**/vendor/**"
|
140 | ],
|
141 | "setupFilesAfterEnv": [
|
142 | "jest-extended"
|
143 | ]
|
144 | }
|
145 | }
|