forked from sigi-framework/sigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 3.19 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
{
"name": "sigi",
"version": "0.0.0",
"description": "Well designed effect management framework for complex frontend app",
"main": "none",
"repository": "git@github.com:sigi-framework/sigi.git",
"author": "lynweklm@gmail.com",
"license": "MIT",
"private": true,
"workspaces": ["packages/*"],
"scripts": {
"build": "run-s clean build:esm build:next build:cjs clean:tests",
"build:esm": "tsc -b ./configs/tsconfig.project.json",
"build:next": "tsc -b ./configs/tsconfig.next.json",
"build:cjs": "rollup --config ./configs/rollup.config.js",
"clean": "shx rm -rf ./packages/**/*.tsbuildinfo && shx rm -rf ./packages/**/{esm,dist,next}",
"clean:tests": "shx rm -rf './packages/**/{esm,next}/**/__tests__'",
"lint": "eslint . -c ./.eslintrc.yml '{packages,examples,configs}/**/*.{js,ts,tsx}'",
"format": "run-p format:md format:json format:source format:yml",
"format:json": "prettier --parser json --write '**/*.json'",
"format:md": "prettier --parser markdown --write './*.md' './{examples,packages}/**/*.md'",
"format:source": "prettier --config ./package.json './{examples,packages}/**/*.{ts,tsx,js}' --write",
"format:yml": "prettier --parser yaml --write './*.{yml,yaml}'",
"test": "jest --config ./configs/jest.config.js --collectCoverage",
"test:type": "tsc -b ./configs/tsconfig.type-test.json -verbose"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/config-lerna-scopes": "^11.0.0",
"@swc-node/jest": "^0.3.8",
"@types/jest": "^26.0.14",
"@types/lodash": "^4.14.161",
"@types/node": "^14.10.3",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^16.9.3",
"@types/sinon": "^9.0.5",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"codecov": "^3.7.2",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-plugin-sonarjs": "^0.5.0",
"husky": "^4.3.0",
"jest": "^26.4.2",
"lerna": "^3.22.1",
"lint-staged": "^10.4.0",
"lodash": "^4.17.20",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"reflect-metadata": "^0.1.13",
"rollup": "^2.27.1",
"rollup-plugin-sourcemaps": "^0.6.2",
"rxjs": "^6.6.3",
"shx": "^0.3.2",
"sinon": "^9.0.3",
"ts-node": "^9.0.0",
"tslib": "^2.0.1",
"typescript": "^4.0.2",
"vue": "^2.6.12"
},
"lint-staged": {
"*.@(js|ts|tsx)": ["prettier --write", "eslint -c .eslintrc.yml --fix"],
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
"*.md": ["prettier --parser markdown --write"],
"*.json": ["prettier --parser json --write"]
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always",
"parser": "typescript"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}