forked from bbc/simorgh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
129 lines (129 loc) · 4.88 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
{
"name": "simorgh",
"version": "0.0.1",
"description": "Simorgh",
"main": "index.js",
"scripts": {
"amp:validate": "wait-on http://localhost:7080/ && (amphtml-validator http://localhost:7080/news/articles/c9rpqy7pmypo.amp || true)",
"bbcA11y": "bbc-a11y",
"build": "razzle build",
"cypress": "cypress run",
"cypress:interactive": "cypress open",
"cypress:storybook": "cypress run --project ./.storybook/.",
"cypress:storybook:interactive": "cypress open --project ./.storybook/.",
"dataValidate": "node src/app/dataValidator/index.js",
"dataValidate:debug": "npm run dataValidate --DEBUG_MODE=true",
"dev": "razzle start",
"killApp": "(lsof -t -i:7080 | xargs kill)",
"killStorybook": "(lsof -t -i:9001 | xargs kill)",
"lighthouse": "lighthouse http://localhost:7080/news/articles/c85pqyj5m2ko --output-path=./reports/report.html --view",
"speculate": "speculate",
"start": "NODE_ENV=production node build/server.js",
"storybook": "start-storybook -p 9001 -c .storybook",
"test": "npm run test:lint && npm run test:unit && npm run dataValidate",
"test:accessibility": "npm run killApp && npm run build && run-p --race start bbcA11y",
"test:ampValidate": "npm run killApp && npm run build && run-p --race start amp:validate",
"test:prod:ci": "npm install --no-save cypress bbc-a11y && run-p --race start cypress && run-p --race start bbcA11y",
"test:e2e": "npm run killApp && npm run build && run-p --race start cypress",
"test:e2e:interactive": "npm run killApp && npm run build && run-p --race start cypress:interactive",
"test:e2e:storybook": "npm run killStorybook && run-p --race storybook cypress:storybook",
"test:e2e:storybook:ci": "run-p --race storybook cypress:storybook",
"test:e2e:storybook:interactive": "npm run killStorybook && run-p --race storybook cypress:storybook:interactive",
"test:lighthouse": "npm run killApp && npm run build && run-p --race start lighthouse",
"test:lint": "eslint --ext .js,jsx,json ./src ./data ./cypress ./.storybook && swagger-cli validate data/schema.yaml",
"test:lint:css": "stylelint 'src/**/*.js' 'src/**/*.jsx'",
"test:unit": "razzle test --env=jsdom --coverage",
"updateSnapshots": "npm run test:unit -- -u"
},
"husky": {
"hooks": {
"post-merge": "sh scripts/dependencyUpdateCheck.sh",
"pre-commit": "npm run test:lint",
"pre-push": "sh scripts/stopPushOnLatest.sh && sh scripts/upToDateWithLatest.sh && npm run test:unit"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/bbc-news/simorgh.git"
},
"keywords": [
"BBC",
"Article"
],
"author": "BBC",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/bbc-news/simorgh/issues"
},
"homepage": "https://github.com/bbc-news/simorgh#readme",
"dependencies": {
"babel-plugin-styled-components": "^1.7.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"brotli-webpack-plugin": "^1.0.0",
"compression": "^1.7.3",
"compression-webpack-plugin": "^2.0.0",
"es6-promise": "^4.2.5",
"express": "^4.16.3",
"express-static-gzip": "^1.1.3",
"gnu-terry-pratchett": "0.0.2",
"helmet": "^3.14.0",
"isomorphic-fetch": "^2.2.1",
"markdown-to-jsx": "^6.7.0",
"nanoid": "^1.2.5",
"offline-plugin": "^5.0.5",
"path-to-regexp": "^2.4.0",
"prop-types": "^15.6.2",
"razzle": "2.4.0",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-helmet": "^5.2.0",
"react-router-dom": "^4.3.1",
"react-universal-app": "^1.0.0",
"speculate": "^1.7.4",
"styled-components": "^3.4.9",
"styled-normalize": "^8.0.1"
},
"devDependencies": {
"@storybook/react": "4.0.0-alpha.8",
"amphtml-validator": "^1.0.23",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.0",
"babel-loader": "^8.0.0",
"bbc-a11y": "^2.2.5",
"cypress": "^3.0.3",
"eslint": "^5.6.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-json": "^1.2.1",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^1.0.0",
"jest-fetch-mock": "^1.6.6",
"jest-styled-components": "^6.2.1",
"lighthouse": "^3.1.1",
"npm-run-all": "^4.1.3",
"prettier": "^1.14.3",
"react-test-renderer": "^16.5.2",
"stylelint": "^9.5.0",
"stylelint-config-recommended": "^2.1.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.3.2",
"supertest": "^3.3.0",
"swagger-cli": "^2.1.1",
"wait-on": "^3.0.1",
"webpack-bundle-analyzer": "^3.0.2",
"yaml-js": "^0.2.3"
},
"jest": {
"collectCoverageFrom": [
"**/src/**/*.{js,jsx}",
"!**/src/app/helpers/tests/**",
"!**/*.stories.jsx"
],
"setupFiles": [
"./src/app/helpers/tests/jest-setup.js"
]
}
}