-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
package.json
157 lines (157 loc) · 5.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "@govuk-react/monorepo",
"scripts": {
"build:dist": "yarn build && rimraf dist && webpack --node-env=production --devtool source-map --entry ./packages/govuk-react/dist/govuk-react.esm.js",
"build:storybook": "cd packages/storybook && yarn build",
"build:types": "tsc --emitDeclarationOnly --declaration",
"build": "preconstruct build && yarn workspaces foreach --exclude @govuk-react/monorepo run build",
"bundlesize": "bundlesize",
"clean:workspace": "rimraf packages/*/lib && rimraf packages/*/es && rimraf components/*/lib && rimraf components/*/es",
"clean": "rimraf lib && rimraf es",
"coverage": "yarn coverage:clean && yarn coverage:unit && yarn coverage:visual-regression && yarn coverage:merge && yarn coverage:merge-report",
"coverage:clean": "rimraf coverage",
"coverage:merge": "istanbul-merge --out coverage/merged/coverage-final.json ./coverage/unit/coverage-final.json ./coverage/visual-regression/coverage-final.json",
"coverage:merge-report": "nyc report --reporter=lcov --reporter=text --temp-dir=./coverage/merged --report-dir=./coverage/merged",
"coverage:unit": "jest --watchAll=false --coverage --coverageDirectory=coverage/unit",
"coverage:visual-regression": "jest --watchAll=false --coverage --coverageDirectory=coverage/visual-regression --roots=\"<rootDir>\" --testMatch=\"<rootDir>/storyshots/index.js\" --config=\"./jest.storyshots.config.js\"",
"create-component": "node ./scripts/createComponent.js",
"docs:components": "yarn workspaces foreach --parallel --exclude @govuk-react/monorepo run docs",
"docs": "yarn docs:components && concat ./components/*/README.md -o './API.md'",
"eslint:fix": "eslint --fix \"./{components,packages}/*/src/**/*.{js,ts,tsx}\" \"./*.{js,ts,tsx}\" \"./{scripts,storyshots}/*.{js,ts,tsx}\"",
"eslint": "eslint \"./{components,packages}/*/src/**/*.{js,ts,tsx}\" \"./*.{js,ts,tsx}\" \"./{scripts,storyshots}/*.{js,ts,tsx}\"",
"start": "cd packages/storybook && yarn start",
"test:cypress": "cd packages/example-application && yarn test:cypress",
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"test:snapshot": "yarn test:unit -u",
"test:unit": "jest",
"test:types": "tsc --noEmit --declaration -p ./tsconfig.json",
"test": "cross-env CI=true yarn test:unit && yarn eslint && yarn test:types"
},
"description": "A port of the govuk-frontend components for React using styled-components.",
"main": "lib/index.js",
"module": "es/index.js",
"engines": {
"node": ">=12",
"yarn": ">=2"
},
"dependencies": {
"govuk-colours": "^1.1.0"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"devDependencies": {
"@babel/cli": "7.23.4",
"@babel/core": "7.23.0",
"@babel/node": "7.22.19",
"@babel/plugin-transform-runtime": "7.22.15",
"@babel/preset-env": "7.22.20",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.0",
"@govuk-react/api-docs": "0.10.7",
"@preconstruct/cli": "^2.8.3",
"@storybook/addon-actions": "7.6.17",
"@storybook/addon-controls": "7.6.17",
"@storybook/addon-docs": "7.6.17",
"@storybook/addon-essentials": "7.6.17",
"@storybook/addon-storyshots": "7.6.17",
"@storybook/addons": "7.6.17",
"@storybook/react": "7.6.17",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^16.14.16",
"@types/react-router-dom": "5",
"@types/styled-components": "^5.1.14",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^7.1.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-styled-components": "^2.1.4",
"bundlesize2": "^0.0.31",
"can-npm-publish": "1.3.6",
"chalk": "^4.1.1",
"codacy-coverage": "^3.0.0",
"concat": "^1.0.3",
"core-js": "^3.36.0",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-flowtype": "^5.10.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"final-form": "^4.20.10",
"istanbul-merge": "^2.0.0",
"jest": "^26.6.3",
"jest-styled-components": "^7.2.0",
"jest-transform-stub": "^2.0.0",
"mkdirp-promise": "^5.0.1",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
"react": "^18.2.0",
"react-docgen-typescript": "^2.1.0",
"react-dom": "^18.2.0",
"react-final-form": "^6.5.9",
"react-is": "^18.2.0",
"react-router-dom": "^6.3.0",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
"styled-components": "^5.3.0",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"workspace-alias": "^0.1.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/govuk-react/govuk-react.git"
},
"author": "Alasdair McLeay",
"license": "MIT",
"bugs": {
"url": "https://github.com/govuk-react/govuk-react/issues"
},
"homepage": "https://github.com/govuk-react/govuk-react#readme",
"bundlesize": [
{
"path": "./dist/main.js",
"maxSize": "120 kB"
}
],
"nyc": {
"report-dir": "coverage/unit",
"reporter": [
"text",
"json",
"lcov"
],
"all": true
},
"workspaces": [
"components/*",
"packages/*"
],
"private": true,
"preconstruct": {
"packages": [
"components/*",
"packages/*",
"!packages/images",
"!packages/storybook"
]
},
"packageManager": "yarn@3.6.3",
"resolutions": {
"@types/react": "16.14.16"
}
}