forked from prevwong/craft.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
124 lines (124 loc) · 3.43 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"npmClient": "yarn",
"private": true,
"author": "Prev Wong <prevwong@gmail.com>",
"scripts": {
"dev": "./scripts/dev.sh",
"dev:site": "lerna run start --scope site",
"dev:all": "run-p dev dev:site",
"dev:yalc": "lerna run dev:yalc --parallel",
"clean": "lerna run clean --stream",
"build": "lerna run build --stream --ignore site --ignore 'example-*'",
"build:all": "lerna run build --stream",
"deploy": "cross-env ENV=production ./scripts/deploy.sh",
"prettier": "prettier --write .",
"cy:test": "cypress run",
"cy:open": "cypress open",
"test": "jest",
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prerelease": "lerna version --yes --conventional-commits --conventional-prerelease",
"release": "lerna version --yes --conventional-commits --conventional-graduate",
"publish": "./scripts/publish.sh"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@testing-library/react": "^9.4.0",
"@types/jest": "^24.0.25",
"@types/react-dom": "^16.8.0",
"@typescript-eslint/eslint-plugin": "^2.14.0",
"@typescript-eslint/parser": "^2.14.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
"babel-eslint": "^10.0.3",
"cross-env": "^6.0.3",
"cypress": "^6.5.0",
"enzyme": "^3.11.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-react-app": "^5.1.0",
"eslint-plugin-flowtype": "^4.5.3",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^2.3.0",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lerna": "^4.0.0",
"lint-staged": "^9.5.0",
"nodemon": "^2.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.1",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.3",
"ts-jest": "^24.2.0",
"typescript": "^3.5.1"
},
"workspaces": {
"packages": [
"packages/*",
"site",
"examples/*"
]
},
"dependencies": {
"@babel/preset-typescript": "^7.7.7",
"all-contributors-cli": "^6.11.2",
"rollup-plugin-typescript": "^1.0.1"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/prevwong/craft.js.git"
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/jest/setup.js"
],
"clearMocks": true,
"cacheDirectory": ".jest-cache",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"modulePaths": [
"<rootDir>/packages/core/"
],
"testMatch": [
"<rootDir>/packages/**/?(*.)test.ts(x|)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json",
"diagnostics": {
"pathRegex": "/.(spec|test).ts$/"
}
}
}
},
"lint-staged": {
"packages/**/*.{js,jsx,ts,tsx}": [
"pretty-quick --staged",
"npm run lint",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "jest"
}
}
}