-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
101 lines (101 loc) · 3.84 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
{
"author": "Canonical Webteam",
"license": "LGPL-3.0-or-later",
"scripts": {
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"watch": "watch -p 'static/sass/**/*' -p 'static/js/**/*.js' -p 'static/js/**/*.tsx' -c 'yarn run build'",
"watch-js": "webpack --watch",
"watch-scss": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"build": "yarn run build-css && yarn run build-js",
"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 --map false --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "yarn run build-js-bundle && yarn run build-global-nav",
"build-global-nav": "mkdir -p static/js/build/global-nav && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/build/global-nav",
"build-js-bundle": "webpack",
"format-python": "black --line-length 79 webapp",
"lint-python": "flake8 --extend-ignore=E203 webapp tests && black --check --line-length 79 webapp tests",
"lint-js": "eslint static/js/src/**/*.js",
"lint-scss": "stylelint static/**/*.scss",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"start": "yarn run build && concurrently --raw 'yarn run watch' 'yarn run serve'",
"test": "yarn run lint-scss && yarn run lint-js && yarn run test-js && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"test-js": "jest",
"check-prettier": "prettier -c '**/*.js'"
},
"dependencies": {
"@babel/core": "7.23.9",
"@babel/plugin-transform-runtime": "7.23.9",
"@babel/preset-env": "7.23.9",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@canonical/cookie-policy": "3.5.0",
"@canonical/global-nav": "3.6.4",
"@canonical/react-components": "0.50.5",
"@canonical/store-components": "0.48.0",
"@sentry/react": "7.113.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/react-dom": "18.2.18",
"@types/react-router-dom": "5.3.3",
"autoprefixer": "10.4.17",
"babel-loader": "9.1.3",
"css-loader": "6.10.0",
"d3": "7.8.5",
"d3-array": "3.2.4",
"d3-scale": "4.0.2",
"d3-selection": "3.0.0",
"d3-shape": "3.2.0",
"d3-time-format": "4.1.0",
"date-fns": "3.3.1",
"deep-copy": "1.4.2",
"deep-equal": "2.2.3",
"expose-loader": "5.0.0",
"identity-obj-proxy": "3.0.0",
"mermaid": "10.8.0",
"postcss": "8",
"postcss-cli": "11.0.0",
"prettier": "3.2.5",
"prismjs": "1.29.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-dropzone": "14.2.3",
"react-markdown": "9.0.1",
"react-query": "3.39.3",
"react-router-dom": "6.22.0",
"recoil": "0.7.7",
"remark-mermaidjs": "6.0.0",
"sass": "1.70.0",
"style-loader": "3.3.4",
"swiper": "11.0.6",
"ts-jest": "29.1.2",
"ts-loader": "9.5.1",
"typescript": "5.3.3",
"vanilla-framework": "4.9.0",
"watch-cli": "0.2.3",
"webpack": "5.90.1",
"webpack-cli": "5.1.4"
},
"devDependencies": {
"@babel/eslint-parser": "7.23.10",
"@types/react": "18.2.53",
"@types/uuid": "^9.0.8",
"babel-jest": "29.7.0",
"babel-plugin-prismjs": "2.1.0",
"concurrently": "8.2.2",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "27.6.3",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.33.2",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"msw": "2.2.14",
"sass-loader": "14.1.0",
"stylelint": "16.2.1",
"stylelint-config-standard-scss": "13.0.0",
"stylelint-order": "6.0.4",
"undici": "6.15.0"
}
}