forked from Skyscanner/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
191 lines (191 loc) · 7.25 KB
/
package.json
File metadata and controls
191 lines (191 loc) · 7.25 KB
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
{
"name": "backpack",
"version": "0.0.1",
"private": true,
"engines": {
"node": "^12.13.0",
"npm": "^6.12.0"
},
"scripts": {
"preinstall": "npx ensure-node-env",
"postinstall": "npm run bootstrap",
"bootstrap": "lerna bootstrap --no-ci",
"lerna": "lerna",
"clean:dist": "rm -rf dist",
"clean:lerna": "lerna clean --yes",
"clean:node_modules": "rm -rf node_modules",
"clean": "npm run clean:dist && npm run clean:lerna && npm run clean:node_modules",
"lint:scss": "stylelint 'packages/**/*.scss' --syntax scss",
"lint:scss:fix": "stylelint 'packages/**/*.scss' --syntax scss --fix",
"lint:js": "eslint . .storybook --ext .js,.jsx",
"lint:js:fix": "eslint . .storybook --ext .js,.jsx --fix",
"lint": "npm run lint:js && npm run lint:scss",
"jest:update": "TZ=Etc/UTC jest --updateSnapshot",
"jest:watch": "TZ=Etc/UTC jest --watch",
"jest": "TZ=Etc/UTC jest --coverage",
"flow": "flow --max-warnings 0",
"flow-typed": "flow-typed",
"build:stylesheets": "lerna run build --scope bpk-stylesheets",
"build:tokens": "lerna run tokens --scope bpk-tokens",
"build:svgs": "lerna run svgs --scope bpk-svgs",
"build:sass": "backpack-node-sass && rm packages/bpk-stylesheets/index.css",
"build": "npm run build:tokens && npm run build:svgs && npm run build:sass && lerna run build",
"storybook:dist": "build-storybook -c .storybook -o dist-storybook",
"storybook": "start-storybook -p 9001",
"sassdoc": "sassdoc {packages/bpk-mixins/src/**/*,packages/bpk-svgs/dist/*,packages/bpk-tokens/tokens/base.default}.scss -d dist-sassdoc -v --strict",
"start": "npm run build && npm run storybook",
"start:sass": "backpack-node-sass --watch",
"generate-changelogs": "node scripts/publish-process/generate-changelogs.js",
"upcoming-changes": "node scripts/publish-process/upcoming-changes.js",
"check-bpk-dependencies": "node scripts/npm/check-bpk-dependencies.js",
"fix-bpk-dependencies": "node scripts/npm/check-bpk-dependencies.js --fix",
"test": "npm run lint && npm run check-bpk-dependencies && npm run jest && npm run flow && npm run spellcheck",
"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",
"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",
"publish": "npm run check-pristine && npm run check-owners && npm run build && git pull --rebase && flow stop && npm run test && lerna publish && echo \"NOW PLEASE USE npm run publish:css\"",
"publish:beta": "npm run check-pristine && npm run check-owners && npm run build && git pull --rebase && flow stop && npm run test && node scripts/publish-process/auto-publish.js && npm run publish:css",
"release": "npm run publish",
"danger": "danger ci",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"create-component": "node scripts/npm/create-component.js",
"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'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"*.scss": [
"stylelint --syntax scss --fix",
"stylelint --syntax scss"
],
"*.md": [
"mdspell -r --en-gb --ignore-acronyms --ignore-numbers --no-suggestions"
]
},
"repository": {
"type": "git",
"url": "git@github.com:Skyscanner/backpack.git"
},
"author": "Backpack Design System <backpack@skyscanner.net>",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.4.4",
"@babel/preset-flow": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/register": "^7.4.4",
"@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-viewport": "^5.3.14",
"@storybook/react": "^5.3.14",
"autoprefixer": "^9.4.7",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.0",
"backpack-node-sass": "^0.4.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": "^9.0.1",
"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.131.0",
"flow-typed": "^2.5.1",
"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",
"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.12.0",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-loader": "^3.0.0",
"prompt": "^1.0.0",
"prop-types": "^15.5.10",
"punycode": "^2.1.1",
"raf": "^3.4.1",
"react": "16.4.2",
"react-dom": "16.4.2",
"react-router-dom": "^4.3.1",
"react-svg-loader": "^3.0.1",
"react-test-renderer": "16.4.2",
"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"
},
"jest": {
"verbose": true,
"setupFiles": [
"<rootDir>/scripts/jest/setup.js"
],
"testRegex": "packages/.*-test\\.js$",
"transformIgnorePatterns": [
"node_modules/(?!bpk)"
],
"testPathIgnorePatterns": [
"backpack-react-native/"
],
"moduleNameMapper": {
"react-transition-group/CSSTransition": "<rootDir>/scripts/stubs/cssTransitionStub.js",
"^.+\\.scss$": "<rootDir>/scripts/stubs/styleStub.js",
"^.+\\.svg$": "<rootDir>/scripts/stubs/fileStub.js"
},
"coverageThreshold": {
"global": {
"statements": 75,
"branches": 70,
"functions": 75,
"lines": 75
}
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}