-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
74 lines (74 loc) · 2.93 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
{
"name": "tdr-auth-server",
"version": "0.1.0",
"description": "Repository for TDR Auth Server code",
"private": true,
"scripts": {
"copy-govuk-image-assets": "copyfiles -f node_modules/govuk-frontend/govuk/assets/images/* ./themes/tdr/$npm_config_theme/resources/img -e node_modules/govuk-frontend/govuk/assets/images/favicon*",
"copy-govuk-js-assets": "copyfiles -f node_modules/govuk-frontend/govuk/all.js ./themes/tdr/$npm_config_theme/resources/js",
"copy-assets": "npm-run-all copy-govuk-image-assets copy-govuk-js-assets",
"sass-compile": "sass --no-source-map ./themes/tdr/css-src/sass/main.scss ./themes/tdr/css-src/main.css",
"add-stylesheet-dir": "mkdir -p ./themes/tdr/$npm_config_theme/resources/css",
"compress-css": "minify ./themes/tdr/css-src/main.css > ./themes/tdr/$npm_config_theme/resources/css/main.css",
"compile": "webpack --mode production",
"compile-local": "webpack --mode development",
"build-css": "npm-run-all add-stylesheet-dir sass-compile compress-css",
"build-login": "npm-run-all copy-assets build-css compile --theme=login",
"build-login-local": "npm-run-all copy-assets build-css compile-local --theme=login",
"build-email": "npm-run-all --theme=email",
"update-local-resources": "docker cp themes/tdr/$npm_config_theme/. $npm_config_container_name:/opt/keycloak/themes/tdr/$npm_config_theme",
"build-local": "npm-run-all build-login-local build-email update-local-resources",
"build-theme": "npm-run-all build-login build-email",
"check-style": "stylelint 'themes/tdr/css-src/**/*.scss'",
"checks": "npm-run-all check-style test",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nationalarchives/tdr-auth-server.git"
},
"author": "The National Archives",
"license": "MIT",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"bugs": {
"url": "https://github.com/nationalarchives/tdr-auth-server/issues"
},
"homepage": "https://github.com/nationalarchives/tdr-auth-server#readme",
"dependencies": {
"base64url": "^3.0.1",
"govuk-frontend": "^4.9.0",
"unfetch": "^5.0.0"
},
"devDependencies": {
"@nationalarchives/tdr-components": "1.0.43",
"@types/jest": "^29.5.14",
"@types/node": "^22.5.4",
"@types/webappsec-credential-management": "^0.6.9",
"buffer": "^6.0.3",
"copyfiles": "^2.4.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"minify": "^12.0.0",
"npm-run-all": "^4.1.5",
"pre-commit": "^1.2.2",
"prettier": "3.4.2",
"sass": "^1.82.0",
"stylelint": "^16.11.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-order": "^6.0.4",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"lint-staged": {
"themes/tdr/css-src/**/*.scss": "stylelint"
}
}