@moduk/frontend 0.2.1-alpha.4 → 0.2.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "0.2.1-alpha.
|
|
3
|
+
"version": "0.2.1-alpha.6",
|
|
4
4
|
"description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"sass": "src/css/index.scss",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"style": "./dist/css/index.css"
|
|
18
18
|
},
|
|
19
19
|
"./client": {
|
|
20
|
-
"import": "./dist/client/
|
|
21
|
-
"require": "./dist/client/
|
|
20
|
+
"import": "./dist/client/moduk-frontend.mjs",
|
|
21
|
+
"require": "./dist/client/moduk-frontend.umd.js"
|
|
22
22
|
},
|
|
23
|
-
"./dist
|
|
23
|
+
"./dist/*": "./dist/*"
|
|
24
24
|
},
|
|
25
25
|
"types": "dist/lib/index.d.ts",
|
|
26
26
|
"scripts": {
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"build:css": "sass --load-path=node_modules --quiet-deps --style compressed src/css/index.scss | postcss -o dist/css/index.css",
|
|
33
33
|
"prebuild:lib": "shx rm -rf dist/lib",
|
|
34
34
|
"build:lib": "tsc --project tsconfig.build.json && shx cp -r src/nunjucks dist/lib",
|
|
35
|
+
"examples:build": "npm run build && eleventy",
|
|
36
|
+
"examples:serve": "eleventy --serve",
|
|
35
37
|
"format": "dprint fmt",
|
|
36
38
|
"format:check": "dprint check",
|
|
37
39
|
"lint": "npm run lint:types && npm run lint:source",
|
|
@@ -39,8 +41,7 @@
|
|
|
39
41
|
"lint:types": "tsc --noEmit",
|
|
40
42
|
"playwright-install": "playwright install --with-deps",
|
|
41
43
|
"prepack": "npm run build",
|
|
42
|
-
"
|
|
43
|
-
"serve:no-reload": "ts-node examples-server/serve.ts",
|
|
44
|
+
"start": "npm run examples:serve",
|
|
44
45
|
"test": "vitest run",
|
|
45
46
|
"test:e2e": "npm run build && playwright test --grep-invert @visual-regression",
|
|
46
47
|
"test:e2e:show-report": "playwright show-report e2e/output/html",
|
|
@@ -76,11 +77,10 @@
|
|
|
76
77
|
"npm": ">=8.15.0"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
80
|
+
"@11ty/eleventy": "^1.0.2",
|
|
79
81
|
"@axe-core/playwright": "^4.5.2",
|
|
80
82
|
"@commitlint/cli": "^17.3.0",
|
|
81
83
|
"@commitlint/config-conventional": "^17.3.0",
|
|
82
|
-
"@fastify/static": "^6.6.0",
|
|
83
|
-
"@fastify/view": "^7.3.0",
|
|
84
84
|
"@playwright/test": "^1.29.1",
|
|
85
85
|
"@release-it/conventional-changelog": "^5.1.1",
|
|
86
86
|
"@testing-library/dom": "^8.19.0",
|
|
@@ -97,12 +97,10 @@
|
|
|
97
97
|
"eslint-import-resolver-typescript": "^3.5.2",
|
|
98
98
|
"eslint-plugin-import": "^2.26.0",
|
|
99
99
|
"eslint-plugin-unicorn": "^45.0.1",
|
|
100
|
-
"fastify": "^4.10.2",
|
|
101
100
|
"glob": "^8.0.3",
|
|
102
101
|
"happy-dom": "^8.1.0",
|
|
103
102
|
"husky": "^8.0.2",
|
|
104
103
|
"lint-staged": "^13.1.0",
|
|
105
|
-
"nodemon": "^2.0.20",
|
|
106
104
|
"postcss-cli": "^10.1.0",
|
|
107
105
|
"postcss-fail-on-warn": "^0.2.1",
|
|
108
106
|
"release-it": "^15.5.0",
|
|
@@ -122,11 +120,14 @@
|
|
|
122
120
|
"dprint fmt"
|
|
123
121
|
]
|
|
124
122
|
},
|
|
123
|
+
"overrides": {
|
|
124
|
+
"liquidjs": "^10.4.0"
|
|
125
|
+
},
|
|
125
126
|
"dependencies": {
|
|
126
|
-
"govuk-frontend": "^4.4.1",
|
|
127
127
|
"lodash": "^4.17.21"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
|
+
"govuk-frontend": "^4.4.1",
|
|
130
131
|
"nunjucks": "^3.2.3"
|
|
131
132
|
},
|
|
132
133
|
"publishConfig": {
|