rigjs 3.0.3 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/built/index.js +113 -113
- package/demo/env.rig.json5 +8 -0
- package/demo/package.json +7 -3
- package/demo/package.rig.json5 +8 -2
- package/demo/rig_helper.d.ts +4 -0
- package/demo/rig_helper.js +5 -5
- package/demo/yarn.lock +3 -3
- package/lib/build/index.ts +1 -1
- package/lib/classes/RigConfig.ts +7 -5
- package/lib/classes/dependencies/Dep.ts +4 -0
- package/lib/env/index.ts +52 -0
- package/lib/init/index.ts +10 -1
- package/lib/preinstall/index.ts +6 -2
- package/lib/print/index.ts +1 -1
- package/lib/rig/index.ts +3 -1
- package/lib/tag/{index.js → index.ts} +6 -6
- package/lib/utils/fsHelper.ts +6 -1
- package/package.json +3 -2
- package/lib/tag/index.d.ts +0 -6
- package/lib/vue-env/index.d.ts +0 -6
- package/lib/vue-env/index.js +0 -50
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# rig
|
|
2
2
|
*[中文文档](./README_CN.md)*
|
|
3
|
-
|
|
4
|
-
- [Getting started](#Get started:Modular developing by rigjs.)
|
|
5
3
|
- [dependencies config](./doc/dependencies_cn.md)
|
|
6
4
|
- [CICD config](./doc/cicd_cn.md)
|
|
7
5
|
- [share config](./doc/share_cn.md)
|
|
@@ -9,7 +7,7 @@
|
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
## Get started
|
|
12
|
-
### Prerequisites
|
|
10
|
+
### 0.Prerequisites
|
|
13
11
|
#### Install yarn
|
|
14
12
|
```shell
|
|
15
13
|
yarn global add rigjs
|
|
@@ -21,7 +19,7 @@ Use [n](https://github.com/tj/n) to update NodeJS.
|
|
|
21
19
|
yarn global add n
|
|
22
20
|
#upgrade to lts
|
|
23
21
|
sudo n lts
|
|
24
|
-
#specify the version.
|
|
22
|
+
#or specify the version.
|
|
25
23
|
sudo n 14.19.1
|
|
26
24
|
```
|
|
27
25
|
|
|
@@ -35,8 +33,9 @@ package.rig.json5 will be added in root path.
|
|
|
35
33
|
|
|
36
34
|
### 2.Use rigjs to install existing repos.
|
|
37
35
|
#### 2.1 Method-one:rig add
|
|
38
|
-
rig add [your
|
|
39
|
-
|
|
36
|
+
rig add [your-git-ssh-url] [tag]
|
|
37
|
+
|
|
38
|
+
example:
|
|
40
39
|
```shell
|
|
41
40
|
rig add git@github.com:FlashHand/rig-demo-1.git 0.0.1
|
|
42
41
|
```
|
|
@@ -127,11 +126,14 @@ Modify package.rig.json5
|
|
|
127
126
|
'rig-demo-1': {
|
|
128
127
|
source: 'git@github.com:FlashHand/rig-demo-1.git',
|
|
129
128
|
version: '0.0.1',
|
|
130
|
-
// dev:true//Don't use dev mode in production
|
|
129
|
+
// dev:true//Don't use dev mode in production.
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
```
|
|
134
|
+
### In Electron Project
|
|
135
|
+
|
|
136
|
+
### In Vite Project
|
|
135
137
|
|
|
136
138
|
## Advantages
|
|
137
139
|
- 💡Rigjs only needs git.No need to publish packages to private registry.
|
|
@@ -170,4 +172,5 @@ Modify package.rig.json5
|
|
|
170
172
|
|
|
171
173
|
I'm still developing new features in most flexible and unobtrusive way.So my team won't cost extra time to upgrade their applications' architecture.
|
|
172
174
|
|
|
173
|
-
Rigjs works great for my team in development of vue-apps,uni-apps,electron apps and nodejs apps.If you don't need many remote modules,it will work fine for you too.
|
|
175
|
+
Rigjs works great for my team in development of vue-apps,uni-apps,electron apps and nodejs apps.If you don't need many remote modules,it will work fine for you too.
|
|
176
|
+
|