-
Notifications
You must be signed in to change notification settings - Fork 74
/
package.json
65 lines (65 loc) · 2.67 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
{
"scripts": {
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"watch": "concurrently --kill-others --raw 'yarn run watch-css' 'yarn run watch-js'",
"watch-css": "watch -p 'static/sass/**/*.scss' -c 'yarn run build'",
"watch-js": "watch -p 'static/js/**/!(*.test)*.{jsx,ts,tsx}' -c 'node build.js'",
"build": "yarn run build-css && yarn run build-js",
"build-css": "sass static/sass/styles.scss static/css/styles.css --load-path=node_modules --style=compressed && postcss --map false --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "./scripts/build-modules.sh && node build.js",
"format-python": "black --line-length 79 webapp tests",
"format-prettier": "prettier -w 'static/js/*.{js,jsx,ts,tsx}' 'static/sass/*.scss'",
"lint-python": "flake8 --extend-ignore=E203 webapp tests && black --check --line-length 79 webapp tests",
"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-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"test-js": "jest --env=jsdom",
"cypress:run": "cypress run --config-file tests/cypress/cypress.json --config baseUrl=http://0.0.0.0:${PORT:-8002}/",
"cypress:open": "cypress open --config-file tests/cypress/cypress.json --config baseUrl=http://0.0.0.0:${PORT:-8002}/"
},
"dependencies": {
"@canonical/cookie-policy": "^3.6.4",
"@canonical/global-nav": "3.6.4",
"@canonical/latest-news": "1.5.0",
"@testing-library/cypress": "9.0.0",
"autoprefixer": "10.4.17",
"concurrently": "7.6.0",
"esbuild": "0.19.12",
"fuse.js": "^6.6.2",
"intl-tel-input": "17.0.18",
"postcss": "8.4.33",
"postcss-cli": "10.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "1.79.0",
"vanilla-framework": "4.18.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.4.0",
"concurrently": "6.5.1",
"cypress": "12.17.4",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier": "2.8.8",
"stylelint": "14.16.1",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-standard-scss": "6.1.0",
"stylelint-order": "6.0.4",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5",
"watch-cli": "0.2.3"
},
"jest": {
"moduleDirectories": [
"node_modules",
"static/js/career-explorer"
],
"transform": {
"^.+\\.(ts|tsx|js|jsx)$": "ts-jest"
}
}
}