-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
54 lines (54 loc) · 3.28 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
{
"name": "react-native-components",
"version": "0.0.0",
"scripts": {
"initialize": "bash scripts/initializeSubmodule.sh",
"build": "bash ./scripts/buildComponents.sh",
"install:showcase-ios": "yarn initialize && cd demos/showcase && yarn && cd ios && pod install && cd ../../.. && yarn link:components",
"install:showcase-android": "yarn initialize && cd demos/showcase && yarn && cd ../.. && yarn link:components",
"install:storybook-ios": "cd demos/storybook && yarn && cd ios && pod install && cd ../../.. && yarn link:components",
"install:storybook-android": "cd demos/storybook && yarn && cd ../.. && yarn link:components",
"install:storybook-api": "cd demos/api && yarn && cd ../.. && yarn link:components",
"install:all": "yarn && cd components && yarn install && cd .. && yarn install:showcase-ios && yarn install:storybook-ios && yarn install:storybook-api",
"install:components": "yarn && cd components && yarn",
"install:all-android": "cd components && yarn install && cd .. && yarn install:showcase-android && yarn install:storybook-android && yarn install:storybook-api",
"link:components": "bash ./scripts/linkComponents.sh",
"publish:package": "cd dist && rm -f *.tgz && set npm_config_yes=true && npx -p @brightlayer-ui/publish blui-publish",
"tag:package": "cd dist && set npm_config_yes=true && npx -p @brightlayer-ui/tag blui-tag -s -blui-react-native-component-library",
"start": "yarn start:showcase",
"start:showcase": "yarn start:showcase-ios",
"start:showcase-ios": "yarn install:showcase-ios && cd demos/showcase && yarn ios",
"start:showcase-android": "yarn install:showcase-android && cd demos/showcase && yarn android",
"start:storybook": "yarn start:storybook-ios",
"start:storybook-ios": "yarn install:storybook-ios && cd demos/storybook && yarn ios",
"start:storybook-android": "yarn install:storybook-android && cd demos/storybook && yarn android",
"start:storybook-api": "yarn install:storybook-api && cd demos/api && yarn start",
"test": "cd components && yarn test",
"test:watch": "cd components && yarn test:watch",
"test:artifacts": "echo \"TODO: TEST ARTIFACTS\"",
"prettier": "prettier \"docs/**.{ts,tsx,js,jsx,json,css,scss,md,html}\" --write && cd components && yarn prettier",
"prettier:check": "prettier \"docs/**.{ts,tsx,js,jsx,json,css,scss,md,html}\" --check && cd components && yarn prettier:check",
"lint": "cd components && yarn lint",
"lint:fix": "cd components && yarn lint:fix",
"update:submodule": "git submodule update --remote",
"precommit": "yarn install:all && yarn prettier && yarn lint && yarn test && yarn build && yarn test:artifacts && yarn generate:licenses",
"coverage": "cd components && yarn test --coverage --watchAll=false",
"generate:licenses": "cd ./components && npm-license-crawler -onlyDirectDependencies -json LICENSES.json",
"prepare": "husky"
},
"directories": {
"doc": "docs"
},
"prettier": "@brightlayer-ui/prettier-config",
"devDependencies": {
"@brightlayer-ui/prettier-config": "^1.0.3",
"eslint-plugin-react-hooks": "^5.0.0",
"husky": "^9.1.6",
"npm-license-crawler": "^0.2.1",
"prettier": "^3.3.3"
},
"jest": {
"coverageDirectory": "./components/coverage/",
"collectCoverage": true
}
}