This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
forked from govuk-react/govuk-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
155 lines (155 loc) · 5.31 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
{
"name": "@govuk-react/monorepo",
"scripts": {
"start": "cd packages/storybook && npm start",
"bootstrap": "lerna bootstrap",
"docs": "./packages/api-docs/bin/doc-component.js './components/**/lib/index.js' './API.md'",
"docs:components": "lerna run docs --parallel",
"eslint": "eslint ./{components,packages}/*/src/{*.js,**/*.js}",
"eslint:fix": "eslint --fix ./{components,packages}/*/src/{*.js,**/*.js}",
"build": "lerna run build --parallel",
"build:sync": "lerna run build",
"build:lib": "lerna run build:lib --parallel",
"build:es": "lerna run build:es --parallel",
"build:dist": "yarn build:es && rimraf dist && webpack -p packages/govuk-react/es/index.js --output-filename dist/index.js",
"pack": "lerna exec --parallel -- npm pack",
"watch": "yarn watch:lib",
"watch:es": "cross-env BABEL_ENV=es lerna exec --ignore @govuk-react/images --parallel -- babel src -d es -w --source-maps",
"watch:lib": "lerna exec --ignore @govuk-react/images --parallel -- babel src -d lib -w --source-maps",
"clean": "rimraf lib && rimraf es",
"flow": "flow",
"bundlesize": "bundlesize",
"test": "cross-env CI=true yarn test:unit && yarn eslint && yarn flow",
"test:unit": "jest --env=jsdom",
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --env=jsdom --runInBand",
"test:snapshot": "yarn test:unit -- -u",
"create-component": "node ./scripts/createComponent.js",
"chromatic-test": "cd packages/storybook && yarn chromatic-test"
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/{components,packages}/*/src/**.js",
"!<rootDir>/{components,packages}/*/src/**/{stories,example,fixtures}.js",
"!<rootDir>/packages/storybook/**",
"!<rootDir>/packages/api-docs/**",
"!<rootDir>/packages/storybook-components/**"
],
"setupTestFrameworkScriptFile": "<rootDir>/scripts/setupTests.js",
"testMatch": [
"<rootDir>/{components,packages}/*/src/**/?(*.)(spec|test).js?(x)"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx)$": "babel-jest"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"moduleFileExtensions": [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
"description": "A port of the govuk-frontend components for React using styled-components.",
"main": "lib/index.js",
"module": "es/index.js",
"dependencies": {
"govuk-colours": "^1.0.3",
"react-markdown": "^3.3.2"
},
"peerDependencies": {
"react": ">=16.2.0"
},
"devDependencies": {
"@babel/cli": "7.1.5",
"@babel/core": "7.1.6",
"@babel/node": "7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-runtime": "7.1.0",
"@babel/preset-env": "7.1.6",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"@storybook/addon-actions": "^4.1.13",
"@storybook/addon-knobs": "^4.1.13",
"@storybook/addons": "^4.1.13",
"@storybook/react": "^4.1.13",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-styled-components": "^1.10.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.20",
"bundlesize": "^0.17.0",
"can-npm-publish": "1.3.1",
"chalk": "^2.3.1",
"codacy-coverage": "^3.0.0",
"cross-env": "^5.1.3",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^4.15.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-sonar": "0.0.6",
"eslint-plugin-flowtype": "^2.42.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.5.1",
"final-form": "^4.2.0",
"flow-bin": "^0.71.0",
"jest": "^23.6.0",
"jest-styled-components": "^6.3.1",
"lerna": "2.11",
"mkdirp-promise": "^5.0.1",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-docgen": "^3.0.0",
"react-dom": "^16.2.0",
"react-final-form": "^3.1.0",
"react-markdown": "^3.3.2",
"react-router-dom": "^4.2.2",
"react-test-renderer": "^16.2.0",
"rimraf": "^2.6.2",
"sinon": "^5.0.1",
"storybook-readme": "^4.0.2",
"styled-components": "^4.1.3",
"webpack": "^3.10.0",
"webpack-cli": "^2.0.12"
},
"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/index.js",
"maxSize": "120 kB"
}
],
"workspaces": [
"components/*",
"packages/*"
],
"private": true
}