forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
131 lines (131 loc) · 5.41 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
{
"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-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-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",
"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'",
"cypress:run": "cypress run --config-file tests/cypress/cypress.json --config baseUrl=http://0.0.0.0:${PORT:-8001}/",
"cypress:open": "cypress open --config-file tests/cypress/cypress.json --config baseUrl=http://0.0.0.0:${PORT:-8001}/",
"check-prettier": "prettier -c 'static/js/src/**/*.{js,jsx,ts,tsx}' 'static/sass/**/*.scss'"
},
"keywords": [
"website",
"ubuntu"
],
"author": "Canonical webteam",
"license": "LGPL v3",
"devDependencies": {
"@babel/core": "7.16.7",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-syntax-jsx": "7.16.7",
"@babel/plugin-transform-runtime": "7.16.7",
"@babel/preset-env": "7.16.7",
"@babel/preset-react": "7.14.5",
"@babel/preset-typescript": "7.16.7",
"@testing-library/cypress": "8.0.0",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.0.0",
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "13.2.1",
"@types/enzyme": "3.10.11",
"@types/jest": "26.0.24",
"@types/lodash": "4.14.175",
"@types/react-google-recaptcha": "2.1.2",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.6",
"axe-core": "4.3.5",
"babel-jest": "26.6.3",
"babel-loader": "8.2.3",
"concurrently": "6.5.1",
"csstype": "3.0.8",
"cypress": "8.7.0",
"cypress-axe": "0.14.0",
"enzyme": "3.11.0",
"eslint": "7.32.0",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-react": "7.28.0",
"exports-loader": "2.0.0",
"fishery": "1.4.0",
"full-icu": "1.4.0",
"jest": "26.6.3",
"jest-fetch-mock": "3.0.3",
"prettier": "2.2.1",
"puppeteer": "10.4.0",
"react-test-renderer": "17.0.2",
"stylelint": "13.13.1",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0",
"stylelint-prettier": "1.2.0",
"stylelint-scss": "3.21.0",
"watch-cli": "0.2.3"
},
"dependencies": {
"@canonical/cookie-policy": "3.4.0",
"@canonical/global-nav": "2.7.0",
"@canonical/latest-news": "1.4.1",
"@canonical/react-components": "0.37.4",
"@reduxjs/toolkit": "1.7.1",
"@sentry/react": "6.11.0",
"@sentry/tracing": "6.11.0",
"@stripe/react-stripe-js": "1.7.0",
"@stripe/stripe-js": "1.22.0",
"autoprefixer": "10.4.1",
"date-fns": "2.28.0",
"date-fns-tz": "1.3.4",
"esbuild": "0.14.10",
"formik": "2.2.9",
"postcss": "8.4.5",
"postcss-cli": "8.3.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-google-recaptcha": "2.1.0",
"react-query": "3.34.7",
"react-useportal": "1.0.16",
"sass": "1.45.2",
"smartquotes": "2.3.2",
"typescript": "4.5.4",
"url-polyfill": "1.1.12",
"url-search-params-polyfill": "8.1.1",
"vanilla-framework": "3.6.1",
"yup": "0.32.11"
},
"resolutions": {
"lodash": "4.17.21",
"minimatch": "3.0.4"
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"setupFilesAfterEnv": [
"<rootDir>/tests/setupTests.ts"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
}
}
}