Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 3.75 KB
/
Copy pathpackage.json
File metadata and controls
98 lines (98 loc) · 3.75 KB
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
{
"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": "sass --watch static/sass/styles.scss:static/css/styles.css --load-path=node_modules --style=compressed",
"watch-js": "nodemon --watch 'static/js' --ext js,jsx,ts,tsx --ignore '**/*.test.*' --ignore 'static/js/dist/**' --exec '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 --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",
"lint-html": "djlint templates/ --lint",
"lint-llms": "python3 webapp/llms.py lint",
"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 lint-html && yarn run lint-llms && yarn run test-python && yarn run test-shell",
"test-python": "python3 -m unittest discover tests",
"test-js": "jest --env=jsdom",
"test-marketo": "python3 -m unittest tests.test_marketo",
"test-kh": "python3 -m unittest tests.test_views.TestKnowledgeSections",
"test-e2e": "playwright test",
"test-shell": "for f in tests/shell/*.sh; do bash \"$f\" || exit 1; done",
"percy-snapshot": "percy snapshot snapshots.js"
},
"dependencies": {
"@canonical/cookie-policy": "3.9.0",
"@canonical/discourse-rad-parser": "1.0.2",
"@canonical/global-nav": "3.8.0",
"@canonical/latest-news": "2.3.1",
"@canonical/react-components": "^0.60.0",
"@fullhuman/postcss-purgecss": "6.0.0",
"@lottiefiles/dotlottie-web": "^0.44.0",
"@rive-app/canvas": "^2.38.5",
"@tanstack/react-query": "^5.83.0",
"@testing-library/cypress": "9.0.0",
"autoprefixer": "10.4.21",
"concurrently": "7.6.0",
"dotenv": "^16.3.1",
"esbuild": "0.25.5",
"esbuild-sass-plugin": "^3.3.1",
"flickity": "^3.0.0",
"formik": "^2.4.6",
"fuse.js": "^6.6.2",
"intl-tel-input": "24.3.5",
"leaflet": "1.9.4",
"lottie-web": "^5.13.0",
"postcss": "8.5.10",
"postcss-cli": "10.1.0",
"prismjs": "1.30.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.24.1",
"sass": "1.89.2",
"use-query-params": "^2.2.1",
"uuid": "^11.1.0",
"vanilla-framework": "4.61.2",
"venobox": "2.1.8",
"yup": "^1.6.1"
},
"devDependencies": {
"@percy/cli": "1.31.5",
"@playwright/test": "^1.47.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.4.0",
"@types/node": "^20.9.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"nodemon": "3.1.10",
"pa11y-ci": "^4.0.1",
"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"
},
"jest": {
"moduleDirectories": [
"node_modules",
"static/js/career-explorer"
],
"testPathIgnorePatterns": [
"<rootDir>/tests/playwright/"
],
"transform": {
"^.+\\.(ts|tsx|js|jsx)$": "ts-jest"
},
"coverageReporters": [
"cobertura",
"text",
"html"
]
}
}