forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
118 lines (118 loc) · 5.04 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
{
"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.12.13",
"@babel/plugin-syntax-jsx": "7.12.13",
"@babel/plugin-transform-runtime": "7.12.15",
"@babel/preset-env": "7.12.13",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "7.14.5",
"@testing-library/cypress": "^8.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "7.0.1",
"@testing-library/user-event": "^13.2.1",
"@types/enzyme": "3.10.9",
"@types/jest": "26.0.24",
"@types/lodash": "^4.14.175",
"@typescript-eslint/eslint-plugin": "4.29.0",
"@typescript-eslint/parser": "4.29.0",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.3",
"axe-core": "4.3.3",
"babel-jest": "26.6.3",
"babel-loader": "8.2.2",
"concurrently": "6.0.0",
"csstype": "^3.0.8",
"cypress": "8.3.1",
"cypress-axe": "0.13.0",
"enzyme": "3.11.0",
"eslint": "7.19.0",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-cypress": "2.11.2",
"eslint-plugin-react": "7.23.2",
"exports-loader": "2.0.0",
"full-icu": "1.3.1",
"jest": "^26.6.3",
"postcss": "8.2.10",
"postcss-cli": "8.3.1",
"prettier": "2.2.1",
"prop-types": "15.7.2",
"puppeteer": "^10.2.0",
"react-test-renderer": "17.0.2",
"stylelint": "13.9.0",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0",
"stylelint-prettier": "1.1.2",
"stylelint-scss": "3.19.0",
"watch-cli": "0.2.3"
},
"dependencies": {
"@canonical/cookie-policy": "3.3.0",
"@canonical/global-nav": "2.5.0",
"@canonical/latest-news": "1.2.0",
"@canonical/react-components": "0.22.0",
"@reduxjs/toolkit": "1.5.0",
"@sentry/react": "^6.11.0",
"@sentry/tracing": "^6.11.0",
"@stripe/react-stripe-js": "1.4.1",
"@stripe/stripe-js": "1.15.0",
"autoprefixer": "10.2.4",
"date-fns": "2.17.0",
"esbuild": "0.9.2",
"formik": "2.2.8",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-query": "3.16.0",
"sass": "1.27.0",
"smartquotes": "2.3.2",
"typescript": "4.3.5",
"url-polyfill": "1.1.12",
"url-search-params-polyfill": "8.1.0",
"vanilla-framework": "2.36.0"
},
"resolutions": {
"lodash": "4.17.21",
"minimatch": "3.0.4"
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/tests/setupTests.ts"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
}
}
}