forked from canonical/snapcraft.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
100 lines (100 loc) · 3.82 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
{
"scripts": {
"lint-js": "eslint static/js",
"lint-scss": "sass-lint 'static/**/*.scss' --verbose --no-exit",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"test": "yarn run test-python && yarn run test-js-all && yarn run lint-scss",
"test-js": "jest",
"test-js-all": "yarn run lint-js && yarn run test-js",
"test-python": "yarn run lint-python && FLASK_DEBUG=0 python3 -m unittest discover tests",
"get-licenses": "if [ ! -f webapp/licenses.json ] ; then curl https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json -o webapp/licenses.json; fi",
"build": "yarn run get-licenses && yarn run build-js && yarn run build-css",
"build-css": "node-sass --include-path node_modules static/sass --output-style compressed --output static/css && postcss --use autoprefixer --no-map --replace 'static/css/**/*.css'",
"build-js": "yarn run copy-3rd-party-js && yarn run build-js-bundle",
"copy-3rd-party-js": "mkdir -p static/js/modules && cp node_modules/d3/build/d3.min.js static/js/modules && cp node_modules/clipboard/dist/clipboard.min.js static/js/modules && cp node_modules/raven-js/dist/raven.min.js static/js/modules",
"build-js-bundle": "webpack",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"watch": "watch -p 'static/sass/**/*.scss' -p 'static/js/**/*.js' -c 'yarn run build'",
"watch-scss": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"watch-js": "webpack --watch",
"clean": "rm -rf node_modules yarn-error.log css static/js/modules static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle cache.tmp webapp/licenses.json"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
"**/*.py": "./run exec yarn lint-python",
"**/*.js": "./run exec yarn lint-js",
"**/*.scss": "./run exec yarn lint-scss"
},
"relative": true
},
"jest": {
"testURL": "http://localhost.test",
"collectCoverage": true
},
"author": "Canonical webteam",
"dependencies": {
"autoprefixer": "^6.3.1",
"babel-core": "^6.26.0",
"babel-eslint": "^10.0.1",
"babel-loader": "7",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"clipboard": "^2.0.0",
"d3": "^4.10.2",
"d3-array": "^1.2.4",
"d3-axis": "^1.0.12",
"d3-fetch": "^1.1.2",
"d3-format": "^1.3.2",
"d3-geo": "^1.9.0",
"d3-scale": "^2.1.2",
"d3-scale-chromatic": "^1.3.3",
"d3-selection": "^1.3.2",
"d3-shape": "^1.2.2",
"d3-time-format": "^2.1.3",
"date-fns": "^1.29.0",
"eslint": "^5.7.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-jest": "^21.13.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.10.0",
"expose-loader": "^0.7.5",
"fast-average-color": "^4.3.0",
"@canonical/global-nav": "2.1.0",
"husky": "^1.0.0-rc.13",
"jest": "^22.4.2",
"lint-staged": "^8.1.0",
"markdown-it": "^8.4.2",
"node-sass": "^4.11.0",
"polylabel": "^1.0.2",
"postcss-cli": "^4.1.0",
"prettier": "^1.14.2",
"prop-types": "^15.6.2",
"raven-js": "^3.24.1",
"react": "^16.4.1",
"react-dnd": "^8.0.0",
"react-dnd-html5-backend": "^8.0.0",
"react-dom": "^16.4.1",
"react-redux": "^5.1.1",
"react-sortable-hoc": "^1.8.3",
"react-testing-library": "^6.0.0",
"redux": "^4.0.1",
"redux-mock-store": "^1.5.3",
"redux-thunk": "^2.3.0",
"sass-lint": "^1.10.2",
"swiper": "^4.4.1",
"topojson-client": "^3.0.0",
"uglifyjs-webpack-plugin": "^2.0.1",
"vanilla-framework": "^2.3.0",
"watch-cli": "^0.2.2",
"webpack": "^4.22.0",
"webpack-cli": "^3.1.2",
"whatwg-fetch": "^2.0.4"
}
}