-
Notifications
You must be signed in to change notification settings - Fork 110
/
package.json
134 lines (134 loc) · 5.2 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
{
"scripts": {
"lint-js": "eslint static/js --ext .js,.jsx,.ts,.tsx",
"lint-a11y": "eslint -c eslint-a11y.config.js static/js --ext .js,.jsx,.ts,.tsx",
"lint-scss": "stylelint static/**/*.scss",
"lint-python": "flake8 webapp tests && black --diff --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",
"build": "yarn run build-js && yarn run build-css",
"build-css": "sass static/sass/styles.scss:static/css/styles.css static/sass/styles-embedded.scss:static/css/styles-embedded.css --load-path=node_modules --style=compressed && 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/dist/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 && yarn build-latest-news",
"build-latest-news": "cp node_modules/@canonical/latest-news/dist/latest-news.js static/js/dist",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"start": "yarn run build && concurrently --raw 'yarn run watch-scss' 'yarn run watch-js' 'yarn run serve'",
"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 --mode development",
"clean": "rm -rf node_modules yarn-error.log css static/js/modules static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle cache.tmp",
"percy": "node_modules/.bin/percy snapshot snapshots.yml"
},
"author": "Canonical webteam",
"license": "LGPL-3.0-or-later",
"dependencies": {
"@babel/core": "7.23.7",
"@babel/plugin-transform-runtime": "7.23.7",
"@babel/preset-env": "7.23.7",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@canonical/cookie-policy": "3.6.4",
"@canonical/global-nav": "3.6.4",
"@canonical/latest-news": "1.5.0",
"@canonical/react-components": "1.7.0",
"@canonical/store-components": "0.52.0",
"@dnd-kit/core": "6.1.0",
"@dnd-kit/sortable": "8.0.0",
"@dnd-kit/utilities": "3.2.2",
"@reduxjs/toolkit": "1.9.7",
"@sentry/react": "7.91.0",
"@sentry/tracing": "7.91.0",
"@tarekraafat/autocomplete.js": "10.2.7",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.1.2",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.11",
"@types/randomstring": "1.1.11",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-redux": "7.1.33",
"@types/react-router-dom": "5.3.3",
"@types/topojson-client": "3.1.4",
"autoprefixer": "10.4.16",
"babel-loader": "9.1.3",
"clipboard": "2.0.11",
"css-loader": "6.8.1",
"d3": "7.8.5",
"d3-array": "3.2.4",
"d3-axis": "3.0.0",
"d3-fetch": "3.0.1",
"d3-format": "3.1.0",
"d3-geo": "3.1.0",
"d3-scale": "4.0.2",
"d3-scale-chromatic": "3.0.0",
"d3-selection": "3.0.0",
"d3-shape": "3.2.0",
"d3-time-format": "4.1.0",
"date-fns": "3.3.1",
"downshift": "8.3.1",
"expose-loader": "5.0.0",
"fast-average-color": "9.4.0",
"markdown-it": "14.0.0",
"nanoid": "5.0.5",
"polylabel": "1.1.0",
"postcss": "8.4.32",
"postcss-cli": "11.0.0",
"prettier": "3.2.5",
"prop-types": "15.8.1",
"randomstring": "1.3.0",
"raven-js": "3.27.2",
"react": "18.2.0",
"react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1",
"react-dom": "18.2.0",
"react-hook-form": "7.53.0",
"react-query": "3.39.3",
"react-redux": "8.1.3",
"react-router-dom": "6.21.1",
"react-sortable-hoc": "2.0.0",
"recoil": "0.7.7",
"redux": "4.2.1",
"redux-mock-store": "1.5.4",
"redux-thunk": "2.4.2",
"sass": "1.79.5",
"style-loader": "3.3.3",
"swiper": "11.0.6",
"topojson-client": "3.1.0",
"ts-loader": "9.5.1",
"typescript": "5.3.3",
"uuid": "10.0.0",
"vanilla-framework": "4.17.1",
"watch-cli": "0.2.3",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"whatwg-fetch": "3.6.20"
},
"devDependencies": {
"@babel/eslint-parser": "7.23.3",
"@percy/cli": "1.27.6",
"@types/d3": "7.4.3",
"@types/markdown-it": "14.1.1",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"babel-jest": "29.7.0",
"concurrently": "8.2.2",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "27.6.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.33.2",
"identity-obj-proxy": "3.0.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"sass-loader": "14.1.0",
"stylelint": "16.2.1",
"stylelint-config-standard-scss": "13.0.0",
"stylelint-order": "6.0.4",
"ts-jest": "29.1.1"
}
}