-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
89 lines (89 loc) · 3.12 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": "test-app",
"homepage": "https://sky172839465.github.io/test-app/",
"version": "0.1.0",
"dependencies": {
"bulma": "^0.7.2",
"classnames": "^2.2.6",
"lodash": "^4.17.11",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-loadable": "^5.5.0",
"react-router-dom": "^4.3.1",
"react-scripts": "^2.1.3"
},
"scripts": {
"start": "react-scripts start",
"build": "if react-scripts build; then echo '😏 Build success'; else echo '😨 Build failure'; exit 1; fi",
"test": "if CI=true react-scripts test --coverage --env=jsdom; then echo '✅ Unit test run success'; else echo '❌ Unit test run failure'; exit 1; fi",
"test::single": "react-scripts test --coverage --env=jsdom",
"functional::local": "npm run start:selenium && codeceptjs run --steps --config=./codecept/local.config.js",
"functional::online": "if codeceptjs run --steps --config=./codecept/sauce.config.js; then echo '🎊 Functional test run success'; else echo '💔 Functional test run failure'; exit 1; fi",
"functional::online:multiple": "if codeceptjs run-multiple --all --steps --config=./codecept/sauce.config.js; then echo '🎊 Functional test run success'; else echo '💔 Functional test run failure'; exit 1; fi",
"functional::online:localhost": "export BASE_URL=http://localhost:3000/; npm run functional::online",
"start::sauce_connect": "bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY -i local-tunnel",
"install:selenium": "selenium-standalone install",
"start:selenium": "selenium-standalone start > /dev/null 2>&1 &",
"kill:selenium": "lsof -t -i :4444 | xargs kill",
"deploy::prod": "npm run build && if bash ./ghpage-deploy.sh; then echo '🤗 Deploy success'; else echo '😱 Deploy failure'; exit 1; fi",
"eject": "react-scripts eject",
"lint": "if standard | snazzy; then echo '💯 Lint perfect'; else echo '⁉️ Lint get error please run `npm run lint` check again';exit 1; fi"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"@applitools/eyes.webdriverio": "^2.0.0",
"@types/jest": "^23.3.13",
"@wdio/sync": "^5.7.1",
"codeceptjs": "^2.0.7",
"codeceptjs-saucehelper": "^1.1.0",
"codecov": "^3.1.0",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"enzyme-to-json": "^3.3.5",
"node-sass": "^4.11.0",
"saucelabs": "^1.5.0",
"selenium-standalone": "^6.15.4",
"snazzy": "7.1.1",
"standard": "^12.0.1",
"webdriverio": "^5.7.1"
},
"jest": {
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"collectCoverageFrom": [
"src/**/*.js",
"!src/__tests__/**/*",
"!src/__e2e__/**/*",
"!src/(App|index|serviceWorker|setupTests).js"
],
"coverageReporters": [
"text",
"lcov"
]
},
"standard": {
"ignore": [
"build/*",
"registerServiceWorker.js"
],
"env": {
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"globals": [
"actor",
"Feature",
"Scenario"
]
}
}