Move repo to use yarn workspaces and lerna

This commit is contained in:
REDMOND\acoates 2019-08-22 16:03:49 -07:00
Родитель c5d56176aa
Коммит 9ad24a3913
11 изменённых файлов: 6593 добавлений и 14 удалений

6
.github/workflows/pr.yml поставляемый
Просмотреть файл

@ -6,5 +6,9 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
submodules: true
- run: init.bat
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test

Просмотреть файл

@ -18,7 +18,11 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
## Building this repo
CI has not been setup, so for now please run init.bat .
```cmd
yarn
yarn build
yarn test
```
## Packages

6
lerna.json Normal file
Просмотреть файл

@ -0,0 +1,6 @@
{
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.0.0"
}

24
package.json Normal file
Просмотреть файл

@ -0,0 +1,24 @@
{
"name": "react-native-tscodegen-repo",
"version": "0.0.1",
"private": true,
"scripts": {
"build": "lerna run build --stream",
"test": "lerna run test --stream",
"change": "node ./node_modules/beachball/bin/beachball.js change"
},
"repository": {
"type": "git",
"url": "git@github.com:microsoft/react-native-tscodegen.git"
},
"license": "MIT",
"workspaces": {
"packages": [
"packages/*"
]
},
"devDependencies": {
"beachball": "^1.11.5",
"lerna": "^3.16.1"
}
}

Просмотреть файл

@ -1,6 +1,7 @@
{
"name": "rn-tscodegen-test",
"version": "1.0.0",
"private": true,
"description": "Test files for RN-TSCodegen",
"main": "./lib/index.js",
"scripts": {
@ -10,8 +11,7 @@
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

Просмотреть файл

@ -11,8 +11,7 @@
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

Просмотреть файл

@ -1,6 +1,7 @@
{
"name": "minimum-flow-parser",
"version": "1.0.0",
"private": true,
"description": "Minimum Flow parser just enough to convert Flow to TypeScript for this project",
"main": "lib/src/index.js",
"scripts": {
@ -11,8 +12,7 @@
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

Просмотреть файл

@ -2,6 +2,7 @@
"name": "ts-parsec",
"version": "1.0.0",
"description": "TypeScript Parser Combinator",
"private": true,
"main": "./lib/src/index.js",
"scripts": {
"build": "tslint --project tsconfig.json & tsc",
@ -11,8 +12,7 @@
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

Просмотреть файл

@ -3,12 +3,12 @@
"version": "1.0.0",
"description": "Shared tslint rules",
"main": "tslint-export.json",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

Просмотреть файл

@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Convert a few files from facebook/react-native and write them to RN-TSCodegen",
"main": "lib/index.js",
"private": true,
"scripts": {
"build": "tslint --project tsconfig.json & tsc",
"start": "node ./lib/index.js"
@ -11,8 +12,7 @@
"type": "git",
"url": "git+https://github.com/microsoft/react-native-tscodegen.git"
},
"author": "Zihan Chen",
"license": "MIT License",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/react-native-tscodegen/issues"
},

6542
yarn.lock Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу