-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
84 lines (84 loc) · 2.41 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
{
"name": "silverstripe-react",
"description": "Boilerplate logic for boostrapping react component",
"main": "./client/src/boot/index.js",
"author": "Maxime Rainville",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "git+https://github.com/maxime-rainville/silverstripe-react.git"
},
"homepage": "https://github.com/maxime-rainville/silverstripe-react",
"bugs": {
"url": "https://github.com/maxime-rainville/silverstripe-react/issues"
},
"engines": {
"node": "^18.x"
},
"scripts": {
"build": "yarn && yarn lint && yarn test && rm -rf client/dist/* && NODE_ENV=production webpack --mode production --bail --progress",
"dev": "NODE_ENV=development webpack --progress",
"watch": "NODE_ENV=development webpack --watch --progress",
"css": "WEBPACK_CHILD=css npm run build",
"test": "jest",
"coverage": "jest --coverage",
"lock": "npm-shrinkwrap --dev",
"lint": "eslint client/src && sass-lint client/src",
"lint-js": "eslint client/src",
"lint-js-fix": "eslint client/src --fix",
"lint-sass": "sass-lint client/src"
},
"dependencies": {
"react": "^18.2.0",
"react-router": "^6.7.0",
"react-router-dom": "^6.4.2",
"classnames": "^2.2.5",
"core-js": "^3.26.0"
},
"peerDependencies": {
"silverstripe-admin": "*"
},
"devDependencies": {
"@babel/runtime": "^7.20.0",
"@silverstripe/eslint-config": "^1.0.0-alpha6",
"@silverstripe/webpack-config": "^2.0.0-alpha9",
"babel-jest": "^29.3.0",
"jest-cli": "^29.2.2",
"jest-environment-jsdom": "^29.3.1",
"webpack": "^5.74.0",
"webpack-cli": "^5.0.0",
"@storybook/addon-actions": "^7.0.18",
"@testing-library/react": "^14.0.0"
},
"jest": {
"roots": [
"client/src"
],
"testEnvironment": "jsdom",
"modulePaths": [
"client/src",
"../admin/client/src",
"../admin/node_modules",
"../silverstripe/admin/client/src",
"../silverstripe/admin/node_modules",
"../../silverstripe/admin/client/src",
"../../silverstripe/admin/node_modules"
],
"collectCoverageFrom": [
"**/*.{js,jsx}",
"!**/node_modules/**",
"!**/boot/**",
"!**/bundles/**",
"!**/legacy/**",
"!**/vendor/**",
"!**/*-test.{js,jsx}",
"!**/*-story.{js,jsx}"
],
"testMatch": [
"**/tests/**/*-test.js?(x)"
],
"transform": {
".*": "babel-jest"
}
}
}