This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
51 lines (51 loc) · 1.75 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
{
"name": "pattern-library-framework",
"version": "2.0.0-rc.1",
"private": true,
"dependencies": {
"node-sass": "^6.0.1"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@testing-library/react": "^12.0.0",
"glob": "^7.1.7",
"husky": "^7.0.0",
"preact": "^10.5.14",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "^4.0.3",
"react-styleguidist": "^11.1.7",
"react-styleguidist-visual": "github:theZieger/react-styleguidist-visual#use-elementHandle-screenshot",
"rewire": "^5.0.0"
},
"scripts": {
"start": "npx styleguidist server",
"build-styleguide": "GENERATE_SOURCEMAP=false npx styleguidist build",
"test": "npm run test-code && npm run test-visual",
"test-code": "react-scripts test --watchAll=false",
"test-watch": "react-scripts test",
"test-visual": "npx styleguidist build && styleguidist-visual test --url \"file://$(pwd)/styleguide/index.html\" --wait 150 --threshold 0.1",
"approve": "npx styleguidist-visual approve",
"create": "bash scripts/create.sh",
"transpile": "babel src -d dist --ignore src/**/*.test.js --presets=@babel/preset-react --plugins=@babel/plugin-syntax-object-rest-spread",
"css": "cd src && find . -name '*.css' | cpio -pdm ../dist",
"scss": "cd src && find . -name '*.scss' | cpio -pdm ../dist",
"build": "npm run transpile & npm run scss & npm run css",
"createLegacy": "bash scripts/createLegacy.sh",
"bundleLegacy": "node scripts/bundleLegacy.js $1",
"prepare": "husky install"
},
"eslintConfig": {
"extends": "react-app"
},
"prettier": {
"singleQuote": true
},
"browserslist": [
"> 2% in DE",
"last 5 versions",
"not ie <= 11"
]
}