-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.json
117 lines (117 loc) · 4.87 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
{
"private": true,
"name": "backpack-react-native-example",
"version": "0.0.0",
"engines": {
"node": "^14.19.0",
"npm": "^6.14.16"
},
"repository": {
"type": "git",
"url": "[email protected]:Skyscanner/backpack-react-native.git"
},
"author": "Backpack Design System <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"postinstall": "if [ ! -f .env ]; then cp .env.template .env; fi",
"install:cocoapods": "(cd ios && bundle install && bundle exec pod install)",
"clean:node_modules": "rm -rf node_modules",
"clean:build": "rm -rf dist",
"clean": "npm run clean:node_modules && npm run clean:build",
"lint:fix": "eslint . --ext .js,.jsx --fix",
"lint": "eslint . --ext .js,.jsx",
"jest:update": "jest --updateSnapshot",
"jest:watch": "jest --watch",
"flow": "npm run flow-check-ios && npm run flow-check-android",
"flow-check-ios": "flow check --show-all-errors --show-all-branches",
"flow-check-android": "flow check --show-all-errors --show-all-branches --flowconfig-name .flowconfig.android",
"check-bpk-dependencies": "",
"fix-bpk-dependencies": "",
"test": "npm run lint && npm run check-bpk-dependencies && jest --coverage && npm run flow-check-ios && npm run flow-check-android && npm run spellcheck",
"check-owners": "npm whoami && ( node scripts/npm/get-owners.js | grep -E $(npm whoami) ) && node scripts/npm/check-owners.js",
"release": "npm run check-owners && git fetch && git pull --rebase && flow stop && npm test && npm run android:test && npm run build && node scripts/npm/release/index.js",
"danger": "danger ci",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"create-component": "node scripts/npm/create-component.js",
"link": "react-native link",
"ios": "npm run install:cocoapods && react-native run-ios --simulator=\"iPhone 8\"",
"android:emulator": "./scripts/android/start-emulator.sh bpk-avd --allow-multiple",
"android:emulator:min": "./scripts/android/start-emulator.sh bpk-avd-min --allow-multiple",
"android:build": "react-native run-android",
"android:test": "./scripts/android/start-emulator.sh bpk-avd && (cd android && ./gradlew :backpack-react-native:connectedAndroidTest)",
"android:copy-fonts": "cp node_modules/@skyscanner/bpk-svgs/dist/font/*.{woff,ttf} android/app/src/main/assets/fonts/",
"android": "npm run android:copy-fonts && npm run android:emulator & npm run android:build",
"spellcheck": "mdspell -r --en-gb --ignore-acronyms --ignore-numbers --no-suggestions '*.md' '**/*.md' '!**/node_modules/**/*.md' '!ios/Pods/**/*.md'",
"spellcheck:interactive": "mdspell --en-gb --ignore-acronyms --ignore-numbers '*.md' '**/*.md' '!**/node_modules/**/*.md' '!ios/Pods/**/*.md'",
"start": "react-native start --reset-cache",
"storybook": "(adb reverse tcp:7007 tcp:7007 || true) && start-storybook",
"documentation": "node ./scripts/npm/documentation.js",
"build": "npm run clean:build && ./scripts/build.sh dist"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.md": [
"mdspell -r --en-gb --ignore-acronyms --ignore-numbers --no-suggestions"
],
"*.kt": [
"./scripts/android/pre-commit-hook.sh",
"git add"
]
},
"documentation": {
"packages": [
"bpk-appearance",
"bpk-component-calendar"
]
},
"devDependencies": {
"@skyscanner/bpk-foundations-react-native": "^3.1.2",
"@skyscanner/bpk-svgs": "^15.1.6",
"@skyscanner/react-native-transitiongroup": "^1.1.3",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-ondevice-actions": "^5.3.21",
"@storybook/react-native": "^5.3.21",
"@storybook/react-native-server": "5.3.19",
"babel-jest": "^26.6.3",
"babel-loader": "^8.0.6",
"babel-plugin-jest-hoist": "^26.6.2",
"backpack-react-native": "file:./lib",
"cli-progress": "^3.0.0",
"colors": "^1.3.3",
"core-js": "^3.1.3",
"danger": "^11.2.1",
"documentation": "^13.0.2",
"eslint-config-skyscanner": "^8.0.2",
"eslint-plugin-flowtype": "^4.0.0",
"eslint-plugin-react-hooks": "^4.1.0",
"eslint_d": "^10.1.3",
"fbjs-scripts": "^3.0.0",
"flow-bin": "^0.107.0",
"globby": "^11.0.1",
"husky": "^7.0.0",
"inquirer": "^7.3.3",
"jest": "^26.6.3",
"jest-expo": "^48.0.2",
"lint-staged": "^10.5.4",
"markdown-spellcheck": "^1.3.1",
"metro-react-native-babel-preset": "^0.64.0",
"prop-types": "^15.5.10",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "^0.64.0",
"react-native-codegen": "0.0.7",
"react-native-dash": "0.0.11",
"react-native-dotenv": "^2.5.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-maps": "^0.28.0",
"react-test-renderer": "17.0.1",
"tmp": "^0.2.1",
"util": "^0.12.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}