forked from govuk-react/govuk-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
181 lines (181 loc) · 6.29 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"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.14.3",
"@babel/core": "7.14.3",
"@babel/node": "7.14.2",
"@babel/plugin-transform-runtime": "7.17.10",
"@babel/preset-env": "7.14.2",
"@babel/preset-react": "7.13.13",
"@babel/preset-typescript": "7.13.0",
"@govuk-react/api-docs": "0.10.3",
"@preconstruct/cli": "^2.1.5",
"@storybook/addon-actions": "6.4.22",
"@storybook/addon-controls": "6.4.22",
"@storybook/addon-docs": "6.4.22",
"@storybook/addon-storyshots": "6.4.22",
"@storybook/addons": "6.4.22",
"@storybook/react": "6.4.22",
"@testing-library/dom": "^7.28.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^14.1.1",
"@types/react": "^16.14.16",
"@types/react-router-dom": "5",
"@types/styled-components": "^5.1.14",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^4.25.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.0.2",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-styled-components": "^2.0.7",
"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.0.1",
"cross-env": "^7.0.3",
"enzyme": "^3.7.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-typescript": "^14.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-flowtype": "^5.10.0",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-no-only-tests": "^2.6.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.2.0",
"final-form": "^4.20.7",
"istanbul-merge": "^1.1.1",
"jest": "^26.6.3",
"jest-styled-components": "^7.0.4",
"jest-transform-stub": "^2.0.0",
"mkdirp-promise": "^5.0.1",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
"react": "^17.0.2",
"react-docgen-typescript": "^2.1.0",
"react-dom": "^17.0.2",
"react-final-form": "^6.5.9",
"react-is": "^17.0.2",
"react-router-dom": "^6.3.0",
"rimraf": "^3.0.2",
"sinon": "^10.0.0",
"styled-components": "^5.3.0",
"typescript": "^4.2.4",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2",
"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,
"branches": 90,
"functions": 90,
"lines": 95,
"statements": 95,
"watermarks": {
"branches": [
90,
95
],
"functions": [
90,
90
],
"lines": [
90,
95
],
"statements": [
85,
95
]
}
},
"workspaces": [
"components/*",
"packages/*"
],
"private": true,
"preconstruct": {
"packages": [
"components/*",
"packages/*",
"!packages/images",
"!packages/storybook"
]
},
"packageManager": "[email protected]",
"resolutions": {
"@types/react": "16.14.16"
}
}