mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
chore: configure publishing packages
This commit is contained in:
committed by
Satyajit Sahoo
parent
f7ff0c1cf0
commit
1c2e5de07a
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,8 +15,8 @@ web-build/
|
||||
web-report/
|
||||
|
||||
npm-debug.*
|
||||
yarn-error.log
|
||||
|
||||
*.log
|
||||
*.jks
|
||||
*.p8
|
||||
*.p12
|
||||
|
||||
10
README.md
10
README.md
@@ -487,3 +487,13 @@ Then run the tests:
|
||||
```sh
|
||||
yarn test
|
||||
```
|
||||
|
||||
## Publishing
|
||||
|
||||
To publish a new version, first we need to export a `GH_TOKEN` environment variable as mentioned [here](https://github.com/lerna/lerna/tree/master/commands/version#--create-release-type). Then run:
|
||||
|
||||
```sh
|
||||
lerna publish
|
||||
```
|
||||
|
||||
This will automatically bump the version and publish the packages. It'll also publish the changelogs on GitHub for each package.
|
||||
|
||||
14
lerna.json
14
lerna.json
@@ -1,8 +1,18 @@
|
||||
{
|
||||
"version": "0.0.0",
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true
|
||||
"useWorkspaces": true,
|
||||
"version": "independent",
|
||||
"command": {
|
||||
"publish": {
|
||||
"allowBranch": "master",
|
||||
"conventionalCommits": true,
|
||||
"createRelease": "github",
|
||||
"preId": "alpha",
|
||||
"preDistTag": "next",
|
||||
"message": "chore: publish"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"jest": "^24.8.0",
|
||||
"lerna": "^3.16.4",
|
||||
"prettier": "^1.18.2",
|
||||
"typescript": "^3.5.1"
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"react": "16.8.3",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
{
|
||||
"name": "@react-navigation/bottom-tabs",
|
||||
"description": "Bottom tab navigator following iOS design guidelines",
|
||||
"keywords": [
|
||||
"react-native-component",
|
||||
"react-component",
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android",
|
||||
"tab"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -25,7 +35,8 @@
|
||||
"@types/react-native": "^0.60.2",
|
||||
"del-cli": "^2.0.0",
|
||||
"react": "16.8.3",
|
||||
"react-native": "^0.59.8"
|
||||
"react-native": "^0.59.8",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
{
|
||||
"name": "@react-navigation/core",
|
||||
"description": "Core utilities for building navigators",
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-native",
|
||||
"react-navigation"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -26,7 +32,8 @@
|
||||
"del-cli": "^2.0.0",
|
||||
"react": "^16.8.3",
|
||||
"react-native-testing-library": "^1.9.1",
|
||||
"react-test-renderer": "^16.8.3"
|
||||
"react-test-renderer": "^16.8.3",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.3"
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
{
|
||||
"name": "@react-navigation/drawer",
|
||||
"description": "Drawer navigator component with animated transitions and gesturess",
|
||||
"keywords": [
|
||||
"react-native-component",
|
||||
"react-component",
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android",
|
||||
"material",
|
||||
"drawer"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -28,7 +39,8 @@
|
||||
"react-native": "^0.59.8",
|
||||
"react-native-gesture-handler": "^1.3.0",
|
||||
"react-native-reanimated": "^1.1.0",
|
||||
"react-native-screens": "^1.0.0-alpha.22"
|
||||
"react-native-screens": "^1.0.0-alpha.22",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@react-navigation/example",
|
||||
"version": "0.0.0",
|
||||
"description": "Demo app to showcase various functionality of React Navigation",
|
||||
"version": "5.0.0-alpha.0",
|
||||
"private": true,
|
||||
"workspaces": {
|
||||
"nohoist": [
|
||||
@@ -40,6 +41,7 @@
|
||||
"@types/react": "^16.8.23",
|
||||
"@types/react-native": "^0.57.65",
|
||||
"babel-preset-expo": "^6.0.0",
|
||||
"expo-cli": "^3.0.6"
|
||||
"expo-cli": "^3.0.6",
|
||||
"typescript": "^3.5.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
{
|
||||
"name": "@react-navigation/material-bottom-tabs",
|
||||
"description": "Integration for bottom navigation component from react-native-paper",
|
||||
"keywords": [
|
||||
"react-native-component",
|
||||
"react-component",
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android",
|
||||
"material",
|
||||
"tab"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -27,7 +38,8 @@
|
||||
"react": "16.8.3",
|
||||
"react-native": "^0.59.8",
|
||||
"react-native-paper": "^3.0.0-alpha.3",
|
||||
"react-native-vector-icons": "^6.6.0"
|
||||
"react-native-vector-icons": "^6.6.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
{
|
||||
"name": "@react-navigation/material-top-tabs",
|
||||
"description": "Integration for the animated tab view component from react-native-tab-view",
|
||||
"keywords": [
|
||||
"react-native-component",
|
||||
"react-component",
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android",
|
||||
"material",
|
||||
"tab"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -26,7 +37,8 @@
|
||||
"react": "16.8.3",
|
||||
"react-native": "^0.59.8",
|
||||
"react-native-reanimated": "^1.1.0",
|
||||
"react-native-tab-view": "^2.10.0"
|
||||
"react-native-tab-view": "^2.10.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
{
|
||||
"name": "@react-navigation/native",
|
||||
"description": "React Native integration for React Navigation",
|
||||
"keywords": [
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -23,7 +30,8 @@
|
||||
"@types/react-native": "^0.60.2",
|
||||
"del-cli": "^2.0.0",
|
||||
"react": "16.8.3",
|
||||
"react-native": "^0.59.8"
|
||||
"react-native": "^0.59.8",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
{
|
||||
"name": "@react-navigation/routers",
|
||||
"description": "Routers to help build custom navigators",
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-native",
|
||||
"react-navigation"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -20,7 +26,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/bob": "^0.7.0",
|
||||
"del-cli": "^2.0.0"
|
||||
"del-cli": "^2.0.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"@react-native-community/bob": {
|
||||
"source": "src",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
{
|
||||
"name": "@react-navigation/stack",
|
||||
"description": "Stack navigator component for iOS and Android with animated transitions and gestures",
|
||||
"keywords": [
|
||||
"react-native-component",
|
||||
"react-component",
|
||||
"react-native",
|
||||
"react-navigation",
|
||||
"ios",
|
||||
"android",
|
||||
"stack"
|
||||
],
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
@@ -29,7 +39,8 @@
|
||||
"react-native": "^0.59.8",
|
||||
"react-native-gesture-handler": "^1.3.0",
|
||||
"react-native-reanimated": "^1.1.0",
|
||||
"react-native-screens": "^1.0.0-alpha.22"
|
||||
"react-native-screens": "^1.0.0-alpha.22",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -15391,7 +15391,7 @@ typedarray@^0.0.6:
|
||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
||||
|
||||
typescript@^3.5.1:
|
||||
typescript@^3.5.3:
|
||||
version "3.5.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"
|
||||
integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==
|
||||
|
||||
Reference in New Issue
Block a user