|
18 | 18 | "README.md" |
19 | 19 | ], |
20 | 20 | "scripts": { |
| 21 | + "analyze": "yarn build -- --stats && webpack-bundle-analyzer build/bundle-stats.json", |
21 | 22 | "build": "rm -rf lib && yarn run --silent build-translations && bob build && yarn run --silent copy-translations", |
| 23 | + "build-translations": "rm -rf .tmpi18ncache || true && mkdir .tmpi18ncache && yarn run babel --config-file ./babel.i18next-extract.json 'src/**/*.{js,jsx,ts,tsx}' --out-dir '.tmpi18ncache/' && rm -rf .tmpi18ncache && prettier --write 'src/i18n/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
22 | 24 | "copy-translations": "echo '\u001b[34mℹ\u001b[0m Copying translation files to \u001b[34mlib/typescript/i18n\u001b[0m' && cp -R -f ./src/i18n ./lib/typescript/src && echo '\u001b[32m✓\u001b[0m Done Copying Translations'", |
23 | 25 | "docs": "styleguidist build", |
24 | | - "test": "TZ=UTC jest", |
25 | 26 | "docs-server": "styleguidist server", |
26 | | - "build-translations": "rm -rf .tmpi18ncache || true && mkdir .tmpi18ncache && yarn run babel --config-file ./babel.i18next-extract.json 'src/**/*.{js,jsx,ts,tsx}' --out-dir '.tmpi18ncache/' && rm -rf .tmpi18ncache && prettier --write 'src/i18n/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
27 | | - "prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
28 | | - "prettier-fix": "prettier --write '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
29 | 27 | "eslint": "eslint '**/*.{js,md,ts,jsx,tsx}' --max-warnings 0", |
30 | | - "analyze": "yarn build -- --stats && webpack-bundle-analyzer build/bundle-stats.json", |
31 | | - "validate-translations": "node bin/validate-translations.js", |
32 | 28 | "lint": "prettier --list-different 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn run validate-translations", |
33 | 29 | "lint-fix": "prettier --write 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc && eslint --fix 'src/**/*.{js,ts,tsx,md}' --max-warnings 0", |
| 30 | + "postversion": "./scripts/post_version.sh", |
34 | 31 | "prepare": "yarn run build", |
35 | | - "prepare-distribution": "cd examples/SampleApp && npm version patch && react-native-version && git add ./ && git commit -m 'Bump build version' --no-verify" |
| 32 | + "prepare-distribution": "cd examples/SampleApp && npm version patch && react-native-version && git add ./ && git commit -m 'Bump build version' --no-verify", |
| 33 | + "prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
| 34 | + "prettier-fix": "prettier --write '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc .babelrc", |
| 35 | + "test": "TZ=UTC jest", |
| 36 | + "validate-translations": "node bin/validate-translations.js" |
36 | 37 | }, |
37 | 38 | "@react-native-community/bob": { |
38 | 39 | "source": "src", |
|
0 commit comments