forked from Skyscanner/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
203 lines (203 loc) · 7.99 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"name": "backpack",
"version": "0.0.1",
"license": "Apache-2.0",
"private": true,
"engines": {
"node": "^12.13.0",
"npm": "^6.12.0"
},
"repository": {
"type": "git",
"url": "[email protected]:Skyscanner/backpack.git"
},
"author": "Backpack Design System <[email protected]>",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"bootstrap": "lerna bootstrap --no-ci",
"build": "npm run build:sass && lerna run build",
"build:sass": "backpack-node-sass --prefixComment=\"$(cat ./license.txt)\" && rm packages/bpk-stylesheets/index.css",
"build:stylesheets": "lerna run build --scope bpk-stylesheets",
"check-bpk-dependencies": "node scripts/npm/check-bpk-dependencies.js",
"check-react-versions": "node scripts/npm/check-react-versions.js",
"check-owners": "npm whoami && ( node scripts/npm/get-owners.js | grep -E $(npm whoami) ) && node scripts/npm/check-owners.js",
"check-pristine": "node scripts/check-pristine-state",
"clean": "npm run clean:dist && npm run clean:lerna && npm run clean:node_modules",
"clean:dist": "rm -rf dist",
"clean:lerna": "lerna clean --yes",
"clean:node_modules": "rm -rf node_modules",
"create-component": "node scripts/npm/create-component.js",
"danger": "danger ci",
"fix-bpk-dependencies": "node scripts/npm/check-bpk-dependencies.js --fix",
"upgrade-foundations": "node scripts/npm/check-bpk-dependencies.js --fix --upgrade-foundations",
"flow": "flow --max-warnings 0",
"flow-typed": "flow-typed",
"format:packagejson": "format-package -w",
"generate-changelogs": "node scripts/publish-process/generate-changelogs.js",
"jest": "TZ=Etc/UTC jest --coverage",
"jest:update": "TZ=Etc/UTC jest --updateSnapshot",
"jest:watch": "TZ=Etc/UTC jest --watch",
"jest:accessibility": "jest --testRegex accessibility-test",
"jest:visual-tests": "jest --testRegex \\.storybook/storyshots-test\\.js",
"jest:visual-tests:update": "jest --testRegex \\.storybook/storyshots-test\\.js --updateSnapshot",
"lerna": "lerna",
"lint": "npm run lint:js && npm run lint:scss",
"lint:js": "eslint . .storybook --ext .js,.jsx",
"lint:js:fix": "eslint . .storybook --ext .js,.jsx --fix",
"lint:scss": "stylelint 'packages/**/*.scss' --syntax scss",
"lint:scss:fix": "stylelint 'packages/**/*.scss' --syntax scss --fix",
"postinstall": "npm run bootstrap",
"preinstall": "npx ensure-node-env",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"publish": "npm run check-pristine && npm run check-owners && npm run build && git pull --rebase && flow stop && npm run test && lerna publish && npm run publish:css",
"publish:css": "node ./scripts/publish-process/transform-js-scss-css-imports.js && node ./scripts/publish-process/transform-bpk-imports.js && node ./scripts/publish-process/publish-css-tagged-packages.js && git reset --hard HEAD",
"postpublish": "./scripts/publish-process/update-docs-deps.sh && node ./scripts/publish-process/update-changelog.js",
"release": "npm run publish",
"sassdoc": "sassdoc {packages/bpk-mixins/src/**/*,node_modules/@skyscanner/bpk-svgs/dist/*,node_modules/@skyscanner/bpk-foundations-web/tokens/base.default}.scss -d dist-sassdoc -v --strict",
"spellcheck": "mdspell -r --en-gb --ignore-acronyms --ignore-numbers --no-suggestions 'UNRELEASED.yaml' '*.md' '**/*.md' '!**/node_modules/**/*.md'",
"spellcheck:interactive": "mdspell --en-gb --ignore-acronyms --no-suggestions --ignore-numbers 'UNRELEASED.yaml' '*.md' '**/*.md' '!**/node_modules/**/*.md'",
"start": "npm run build && npm run storybook",
"start:sass": "backpack-node-sass --watch --prefixComment=\"$(cat ./license.txt)\"",
"storybook": "start-storybook -p 9001",
"storybook:dist": "build-storybook -c .storybook -o dist-storybook",
"test": "npm run lint && npm run check-react-versions && npm run check-bpk-dependencies && npm run jest && npm run flow && npm run spellcheck",
"upcoming-changes": "node scripts/publish-process/upcoming-changes.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"*.md": [
"mdspell -r --en-gb --ignore-acronyms --ignore-numbers --no-suggestions"
],
"*.scss": [
"stylelint --syntax scss --fix",
"stylelint --syntax scss"
]
},
"jest": {
"coverageReporters": [
"text"
],
"coverageThreshold": {
"global": {
"branches": 70,
"functions": 75,
"lines": 75,
"statements": 75
}
},
"moduleNameMapper": {
"^.+\\.scss$": "<rootDir>/scripts/stubs/styleStub.js",
"^.+\\.svg$": "<rootDir>/scripts/stubs/fileStub.js",
"react-transition-group/CSSTransition": "<rootDir>/scripts/stubs/cssTransitionStub.js",
"@skyscanner/bpk-svgs/dist/svgs/^.+\\.svg$": "<rootDir>/scripts/stubs/fileStub.js"
},
"setupFilesAfterEnv": [
"<rootDir>/scripts/jest/setup.js"
],
"testRegex": "packages/.*-test\\.js$",
"transformIgnorePatterns": [
"node_modules/(?!bpk|@skyscanner|d3-.*|internmap)"
],
"verbose": true
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@babel/preset-flow": "^7.12.1",
"@babel/preset-react": "^7.12.7",
"@babel/register": "^7.12.1",
"@skyscanner/bpk-foundations-web": "^4.3.1",
"@storybook/addon-a11y": "^5.3.14",
"@storybook/addon-actions": "^5.3.14",
"@storybook/addon-knobs": "^5.3.14",
"@storybook/addon-links": "^5.3.14",
"@storybook/addon-storyshots": "^5.3.14",
"@storybook/addon-storyshots-puppeteer": "^5.3.14",
"@storybook/addon-viewport": "^5.3.14",
"@storybook/react": "^5.3.14",
"@testing-library/react": "^11.2.5",
"autoprefixer": "^9.4.7",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.0",
"babel-plugin-require-context-hook": "^1.0.0",
"backpack-node-sass": "^0.5.0",
"cli-progress": "^3.0.0",
"colors": "^1.3.3",
"copy-webpack-plugin": "^5.0.4",
"core-js": "^3.0.0",
"css-loader": "^1.0.0",
"danger": "^10.6.4",
"danger-plugin-toolbox": "^1.13.0",
"del": "^5.0.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"enzyme-to-json": "^3.3.5",
"eslint-config-skyscanner": "^7.0.0",
"eslint-plugin-flowtype": "^4.0.0",
"eslint_d": "^9.1.1",
"extract-text-webpack-plugin": "^3.0.2",
"flow-bin": "^0.132.0",
"flow-typed": "^2.5.1",
"format-package": "^6.1.0",
"globby": "^10.0.0",
"gulp": "^4.0.2",
"gulp-chmod": "^3.0.0",
"gulp-cli": "^2.2.0",
"gulp-clone": "^2.0.1",
"gulp-concat": "^2.6.1",
"gulp-iconfont": "^9.2.0",
"gulp-jsonlint": "^1.2.2",
"gulp-rename": "^2.0.0",
"gulp-svgmin": "^2.2.0",
"gulp-theo": "^2.0.0",
"husky": "^4.0.2",
"jest": "^24.8.0",
"jest-axe": "^4.1.0",
"js-yaml": "^3.13.1",
"lerna": "^3.15.0",
"lint-staged": "^10.0.6",
"lodash": "^4.17.20",
"markdown-spellcheck": "^1.3.1",
"merge-stream": "^2.0.0",
"merge2": "^1.2.3",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.14.1",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-loader": "^3.0.0",
"prompt": "^1.0.0",
"prop-types": "^15.5.10",
"punycode": "^2.1.1",
"puppeteer": "^9.1.1",
"raf": "^3.4.1",
"react": "16.4.2",
"react-dom": "16.4.2",
"react-router-dom": "^5.2.0",
"react-svg-loader": "^3.0.1",
"rimraf": "^3.0.1",
"sass-loader": "^8.0.0",
"sassdoc": "^2.7.0",
"semver": "^7.0.0",
"style-loader": "^1.0.0",
"stylelint-config-skyscanner": "^2.0.0",
"theo": "^8.1.3",
"through2": "^3.0.1",
"tinycolor2": "^1.4.1",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.3.1",
"wrapper-webpack-plugin": "^1.0.0",
"yaml": "^1.6.0"
}
}