monorepo-react-template
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -5,3 +5,3 @@ { | ||
"name": "monorepo-react-template", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "This repository is a Monorepo sample based on Lerna that creates a modern build system for managing and publishing multiple packages.", | ||
@@ -27,3 +27,4 @@ "repository": { | ||
"scripts": { | ||
"cra:init": "node custom.webpack.config.js" | ||
"cra:init": "node config/custom.webpack.config.js", | ||
"grpc:init": "node config/grpc.config.js" | ||
}, | ||
@@ -30,0 +31,0 @@ "devDependencies": { |
@@ -26,5 +26,7 @@ # Monorepo React Template | ||
├── nx.json | ||
├── custom.webpack.config.js ---------------- (设置 `react-scripts` 命令的 webpack 配置) | ||
├── package.json | ||
├── package-lock.json | ||
├── config/ | ||
│ └── custom.webpack.config.js ------------ (设置 `react-scripts` 命令的 webpack 配置) | ||
│ └── grpc.config.js ---------------------- (复制 `ts-protoc-gen` 包的文件,为了在 Lerna 环境下独立开发包无法生成 proto 文件) | ||
├── packages/ | ||
@@ -71,2 +73,3 @@ │ ├── front-end/ ------------------------- (基于nextjs, 应该进入此目录单独编译它) | ||
$ npm run cra:init | ||
$ npm run grpc:init | ||
$ npx lerna run build | ||
@@ -79,2 +82,3 @@ ``` | ||
$ npm run cra:init | ||
$ npm run grpc:init | ||
$ npx lerna run build --scope=plugin-1 --scope=plugin-2 --scope=plugin-component | ||
@@ -81,0 +85,0 @@ ``` |
@@ -26,5 +26,7 @@ # Monorepo React Template | ||
├── nx.json | ||
├── custom.webpack.config.js ---------------- (set webpack config for `react-scripts`) | ||
├── package.json | ||
├── package-lock.json | ||
├── config/ | ||
│ └── custom.webpack.config.js ------------ (set webpack config for `react-scripts`) | ||
│ └── grpc.config.js ---------------------- (copy files of `ts-protoc-gen` package. To generate proto files for the independent development package in Lerna.) | ||
├── packages/ | ||
@@ -71,2 +73,3 @@ │ ├── front-end/ ------------------------- (based on nextjs, should enter this directory to compile it separately) | ||
$ npm run cra:init | ||
$ npm run grpc:init | ||
$ npx lerna run build | ||
@@ -79,2 +82,3 @@ ``` | ||
$ npm run cra:init | ||
$ npm run grpc:init | ||
$ npx lerna run build --scope=plugin-1 --scope=plugin-2 --scope=plugin-component | ||
@@ -81,0 +85,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1575390
65
26392
205
5