-
Notifications
You must be signed in to change notification settings - Fork 208
/
package.json
160 lines (160 loc) · 6.26 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"scripts": {
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"format-python": "black --line-length 79 webapp tests",
"format-js": "prettier -w 'static/js/src/**/*.{js,jsx,ts,tsx}'",
"lint-scss": "stylelint 'static/sass/**/*.scss'",
"lint-js": "eslint static/js/src/**/*.{js,jsx,ts,tsx}",
"lint-ts": "tsc --noEmit",
"test-js": "TZ=UTC NODE_ICU_DATA=node_modules/full-icu jest",
"test-links": "./entrypoint 0.0.0.0:${PORT} && sleep 2 && linkchecker --threads 2 --ignore-url /usn --ignore-url /resources --ignore-url /search --ignore-url /server/docs --no-warnings http://127.0.0.1:8000",
"build-cookie-policy": "cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/dist/",
"build-flickity": "cp node_modules/flickity/dist/flickity.pkgd.min.js static/js/dist",
"build-global-nav": "cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/dist/",
"build-latest-news": "cp node_modules/@canonical/latest-news/dist/latest-news.js static/js/dist",
"build-intl-tel-input-utils": "cp node_modules/intl-tel-input/build/js/utils.js static/js/dist",
"build-css": "sass static/sass:static/css --load-path=node_modules --style=compressed && postcss --use autoprefixer --replace 'static/css/**/*.css' --no-map",
"build-js": "node build.js && yarn run build-global-nav && yarn run build-cookie-policy && yarn run build-latest-news && yarn run build-intl-tel-input-utils && yarn run build-flickity",
"build": "yarn run build-css && yarn run build-js && yarn build-global-nav",
"watch": "concurrently --kill-others --raw 'yarn run watch-css' 'yarn run watch-js'",
"watch-css": "watch -p 'static/sass/**/*.scss' -p 'node_modules/vanilla-framework/scss/**/*.scss' -c 'yarn run build-css'",
"watch-js": "watch -p 'static/js/src/**/!(*.test)*.{js,jsx,ts,tsx}' -p 'static/js/data/**/*.js' -p 'static/js/third-party/**/*.js' -c 'yarn run build-js && tsc -noEmit'",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle static/js/dist etc/",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"start": "yarn run build && concurrently --kill-others --raw 'yarn run watch-css' 'yarn run watch-js' 'yarn run serve'",
"check-prettier": "prettier -c 'static/js/src/**/*.{js,jsx,ts,tsx}' 'static/sass/**/*.scss'",
"format-prettier": "prettier -w 'static/js/src/**/*.{js,jsx,ts,tsx}' 'static/sass/**/*.scss'"
},
"keywords": [
"website",
"ubuntu"
],
"author": "Canonical webteam",
"license": "LGPL v3",
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-syntax-jsx": "7.24.7",
"@babel/plugin-transform-runtime": "7.24.7",
"@babel/preset-env": "^7.24.8",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "7.24.7",
"@cfaester/enzyme-adapter-react-18": "0.8.0",
"@eslint/js": "^9.7.0",
"@playwright/test": "^1.40.0",
"@sentry/types": "^8.19.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "14.5.2",
"@types/enzyme": "3.10.18",
"@types/eslint__js": "^8.42.3",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.7",
"@types/node": "^20.9.3",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@types/react-google-recaptcha": "^2.1.9",
"@typescript-eslint/eslint-plugin": "8.0.0",
"@typescript-eslint/parser": "8.0.0",
"axe-core": "4.10.0",
"babel-jest": "^29.7.0",
"babel-loader": "9.1.3",
"concurrently": "8.2.0",
"csstype": "3.0.8",
"enzyme": "3.11.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-react": "7.35.0",
"fishery": "2.2.2",
"full-icu": "1.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-fetch-mock": "3.0.3",
"prettier": "3.3.3",
"stylelint": "16.8.1",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-recommended-scss": "14.0.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.2",
"stylelint-scss": "6.5.1",
"typescript-eslint": "^8.0.0",
"watch-cli": "0.2.3"
},
"dependencies": {
"@axe-core/playwright": "^4.8.5",
"@canonical/cookie-policy": "^3.6.4",
"@canonical/global-nav": "3.6.4",
"@canonical/latest-news": "1.5.0",
"@canonical/react-components": "^0.59.1",
"@reduxjs/toolkit": "2.2.7",
"@sentry/react": "^8.19.0",
"@sentry/tracing": "^7.114.0",
"@stripe/react-stripe-js": "2.7.3",
"@stripe/stripe-js": "4.1.0",
"@tanstack/react-query": "^5.51.11",
"@tanstack/react-query-devtools": "^5.51.11",
"autoprefixer": "10.4.19",
"date-fns": "3.6.0",
"date-fns-tz": "3.1.3",
"dotenv": "^16.3.1",
"esbuild": "0.23.0",
"esbuild-sass-plugin": "^3.3.1",
"flickity": "^3.0.0",
"formik": "2.4.6",
"globals": "^15.8.0",
"intl-tel-input": "24.3.5",
"postcss": "8.4.40",
"postcss-cli": "11.0.0",
"prop-types": "15.8.1",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"react-google-recaptcha": "3.1.0",
"react-router-dom": "^6.24.1",
"react-useportal": "1.0.19",
"sass": "1.79.0",
"smartquotes": "2.3.2",
"typescript": "5.5.4",
"url-polyfill": "1.1.12",
"url-search-params-polyfill": "8.2.5",
"vanilla-framework": "4.18.4",
"yup": "1.4.0"
},
"resolutions": {
"lodash": "4.17.21",
"minimatch": "3.1.2"
},
"jest": {
"testEnvironment": "jsdom",
"moduleDirectories": [
"node_modules",
"src"
],
"testPathIgnorePatterns": [
"<rootDir>/tests/playwright/"
],
"setupFilesAfterEnv": [
"<rootDir>/tests/setupTests.ts"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?!@canonical/react-components).+\\.js$"
],
"moduleNameMapper": {
"\\.(scss|sass)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}