forked from Skyscanner/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
160 lines (160 loc) · 5.74 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
{
"name": "backpack",
"version": "0.0.1",
"license": "Apache-2.0",
"private": true,
"engines": {
"node": "^16.13.0",
"npm": "^8.1.0"
},
"repository": {
"type": "git",
"url": "[email protected]:Skyscanner/backpack.git"
},
"author": "Backpack Design System <[email protected]>",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "gulp",
"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:node_modules",
"clean:dist": "rm -rf dist",
"clean:node_modules": "rm -rf packages/node_modules && rm -rf node_modules",
"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",
"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",
"lint": "npm run lint:js && npm run lint:scss",
"lint:js": "eslint . .storybook --ext .js,.jsx,.ts,.tsx",
"lint:js:fix": "eslint . .storybook --ext .js,.jsx,.ts,.tsx --fix",
"lint:scss": "stylelint 'packages/**/*.scss'",
"lint:scss:fix": "stylelint 'packages/**/*.scss' --fix",
"lint-staged": "lint-staged",
"postinstall": "(cd packages && npm install)",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"publish": "npm run check-pristine && npm run check-owners && npm run build && git pull --rebase && npm run test && node scripts/publish-process/single-package/release.js && node ./scripts/publish-process/update-changelog.js",
"release": "npm run publish",
"start": "npm run build && npm run storybook",
"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",
"typecheck": "tsc",
"upcoming-changes": "node scripts/publish-process/upcoming-changes.js",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.scss": [
"stylelint --fix",
"stylelint"
]
},
"jest": {
"coverageReporters": [
"text"
],
"coverageThreshold": {
"global": {
"branches": 70,
"functions": 75,
"lines": 75,
"statements": 75
}
},
"moduleNameMapper": {
"^.+\\.scss$": "<rootDir>/scripts/stubs/styleStub.js",
"^.+\\.(svg|png)$": "<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",
"^react($|/.+)": "<rootDir>/node_modules/react$1"
},
"setupFilesAfterEnv": [
"<rootDir>/scripts/jest/setup.js"
],
"testRegex": "packages/.*-test\\.[jt]sx?$",
"transformIgnorePatterns": [
"node_modules/(?!bpk|@skyscanner|d3-.*|internmap)"
],
"verbose": true
},
"browserslist": [
"Android >= 96",
"Chrome >= 87",
"Edge >= 96",
"Firefox >= 95",
"Opera >= 82",
"Safari >= 12",
"Samsung >= 16"
],
"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.18.9",
"@skyscanner/bpk-foundations-web": "^15.1.0",
"@skyscanner/bpk-svgs": "^16.2.3",
"@skyscanner/stylelint-config-skyscanner": "^7.0.0",
"@storybook/addon-a11y": "^6.5.14",
"@storybook/addon-actions": "^6.5.14",
"@storybook/addon-storyshots": "^6.5.14",
"@storybook/addon-storyshots-puppeteer": "^6.5.14",
"@storybook/addon-viewport": "^6.5.14",
"@storybook/react": "^6.5.14",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.0",
"@testing-library/user-event": "^14.2.0",
"@types/jest": "^27.0.3",
"@types/jest-axe": "^3.5.3",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"autoprefixer": "^9.4.7",
"babel-loader": "^8.0.0",
"babel-plugin-require-context-hook": "^1.0.0",
"bpk-mixins": "^40.1.0",
"bpk-stylesheets": "^9.0.6",
"cli-progress": "^3.11.1",
"colors": "^1.3.3",
"core-js": "^3.0.0",
"css-loader": "^1.0.0",
"d3-scale": "^4.0.2",
"danger": "^11.2.0",
"date-fns": "^2.28.0",
"eslint_d": "^9.1.1",
"gulp": "^4.0.2",
"gulp-rename": "^2.0.0",
"gulp-svgmin": "^4.1.0",
"husky": "^8.0.2",
"inquirer": "^8.2.3",
"jest": "^26.0.1",
"jest-axe": "^7.0.0",
"lint-staged": "^13.1.0",
"lodash": "^4.17.20",
"node-sass": "^6.0.1",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-loader": "^3.0.0",
"prop-types": "^15.7.2",
"raf": "^3.4.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-svg-loader": "^3.0.1",
"sass-loader": "^10.2.1",
"style-loader": "^2.0.0",
"typescript": "^4.9.3",
"webpack": "^4.46.0"
}
}