-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
161 lines (161 loc) · 5.62 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"name": "training-project",
"description": "A Volto-powered Plone frontend",
"license": "MIT",
"version": "1.0.0",
"scripts": {
"start": "razzle start",
"preinstall": "if [ -f $(pwd)/mrs.developer.json ]; then if [ -f $(pwd)/node_modules/.bin/missdev ]; then yarn develop; else yarn develop:npx; fi; fi",
"postinstall": "yarn omelette && yarn patches",
"omelette": "if [ ! -d omelette ]; then ln -sf node_modules/@plone/volto omelette; fi",
"patches": "/bin/bash patches/patchit.sh > /dev/null 2>&1 ||true",
"build": "razzle build --noninteractive",
"lint": "./node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx}'",
"lint:fix": "./node_modules/eslint/bin/eslint.js --max-warnings=0 --fix 'src/**/*.{js,jsx}'",
"lint:ci": "./node_modules/eslint/bin/eslint.js --max-warnings=0 -f checkstyle 'src/**/*.{js,jsx}' > eslint.xml",
"prettier": "./node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,ts,tsx,css,scss}'",
"prettier:fix": "./node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,ts,tsx,css,scss}'",
"prettier:ci": "./node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,ts,tsx,css,scss}'",
"stylelint": "stylelint 'theme/**/*.{css,less}' 'src/**/*.{css,less}'",
"stylelint:overrides": "stylelint 'theme/**/*.overrides' 'src/**/*.overrides'",
"stylelint:fix": "yarn stylelint --fix && yarn stylelint:overrides --fix",
"test": "razzle test --passWithNoTests",
"cypress:run": "NODE_ENV=test cypress run",
"cypress:open": "NODE_ENV=test cypress open",
"cypress:start-frontend": "RAZZLE_API_PATH=http://localhost:55001/plone yarn start",
"cypress:test-acceptance-server": "make test-acceptance-server",
"cy:test:fixture:setup": "node cypress/support/reset-fixture.js",
"cy:test:fixture:teardown": "node cypress/support/reset-fixture.js teardown",
"ci:start-backend": "make start-test-backend",
"ci:start-frontend": "RAZZLE_API_PATH=http://localhost:55001/plone yarn build && start-test start:prod http-get://localhost:3000 cypress:run",
"ci:cypress:run": "start-test ci:start-backend http-get://localhost:55001/plone ci:start-frontend",
"start:prod": "NODE_ENV=production node build/server.js",
"i18n": "rm -rf build/messages && NODE_ENV=production i18n",
"develop:npx": "npx -p mrs-developer missdev --config=jsconfig.json --output=addons --fetch-https",
"develop": "missdev --config=jsconfig.json --output=addons --fetch-https",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"private": false,
"workspaces": [],
"addons": [],
"jest": {
"modulePathIgnorePatterns": [
"api"
],
"transform": {
"^.+\\.js(x)?$": "babel-jest",
"^.+\\.(png)$": "jest-file",
"^.+\\.(jpg)$": "jest-file",
"^.+\\.(svg)$": "./node_modules/@plone/volto/jest-svgsystem-transform.js"
},
"transformIgnorePatterns": [
"/node_modules/(?!@plone/volto).+\\.js$"
],
"moduleNameMapper": {
"@plone/volto/cypress/(.*)$": "<rootDir>/node_modules/@plone/volto/cypress/$1",
"@plone/volto/addon-registry": "<rootDir>/node_modules/@plone/volto/addon-registry",
"@plone/volto/webpack-plugins/webpack-less-plugin": "<rootDir>/node_modules/@plone/volto/webpack-plugins/webpack-less-plugin",
"@plone/volto/babel": "<rootDir>/node_modules/@plone/volto/babel",
"@plone/volto/(.*)$": "<rootDir>/node_modules/@plone/volto/src/$1",
"load-volto-addons": "<rootDir>/node_modules/@plone/volto/jest-addons-loader.js",
"@package/(.*)$": "<rootDir>/src/$1",
"@root/(.*)$": "<rootDir>/src/$1",
"~/(.*)$": "<rootDir>/src/$1",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"coverageThreshold": {
"global": {
"branches": 10,
"functions": 10,
"lines": 10,
"statements": 10
}
},
"setupFiles": [
"@plone/volto/test-setup-globals.js",
"@plone/volto/test-setup-config.js"
],
"globals": {
"__DEV__": true
}
},
"prettier": {
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
},
"stylelint": {
"extends": [
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-prettier"
],
"overrides": [
{
"files": [
"**/*.less"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.overrides"
],
"customSyntax": "postcss-less"
}
],
"rules": {
"prettier/prettier": true,
"rule-empty-line-before": [
"always-multi-line",
{
"except": [
"first-nested"
],
"ignore": [
"after-comment"
]
}
]
},
"ignoreFiles": "theme/themes/default/**/*.overrides"
},
"browserslist": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie 11",
"not dead"
],
"engines": {
"node": "^14 || ^16"
},
"dependencies": {
"@plone/volto": "16.0.0-alpha.42"
},
"devDependencies": {
"eslint-plugin-prettier": "3.1.3",
"jest-junit": "8.0.0",
"mrs-developer": "*",
"postcss": "8.4.13",
"prettier": "2.0.5",
"@storybook/addon-actions": "^6.3.0",
"@storybook/addon-controls": "6.3.0",
"@storybook/addon-essentials": "^6.3.0",
"@storybook/addon-links": "^6.3.0",
"@storybook/react": "^6.3.0",
"stylelint": "14.0.1",
"stylelint-config-idiomatic-order": "8.1.0",
"stylelint-config-prettier": "8.0.1",
"stylelint-prettier": "1.1.2"
}
}