rigjs 3.0.6 → 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 +10 -7
- package/built/index.js +85 -85
- package/demo/rig_helper.d.ts +4 -0
- package/demo/rig_helper.js +5 -5
- package/lib/init/index.ts +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# rig
|
|
2
2
|
*[中文文档](./README_CN.md)*
|
|
3
|
-
- [Goals](#Goals)
|
|
4
|
-
- [Get started:Modular developing by rigjs](#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)
|
|
6
|
+
- [Goals](#Goals)
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
## Get started
|
|
9
|
+
## Get started
|
|
11
10
|
### 0.Prerequisites
|
|
12
11
|
#### Install yarn
|
|
13
12
|
```shell
|
|
@@ -20,7 +19,7 @@ Use [n](https://github.com/tj/n) to update NodeJS.
|
|
|
20
19
|
yarn global add n
|
|
21
20
|
#upgrade to lts
|
|
22
21
|
sudo n lts
|
|
23
|
-
#specify the version.
|
|
22
|
+
#or specify the version.
|
|
24
23
|
sudo n 14.19.1
|
|
25
24
|
```
|
|
26
25
|
|
|
@@ -34,8 +33,9 @@ package.rig.json5 will be added in root path.
|
|
|
34
33
|
|
|
35
34
|
### 2.Use rigjs to install existing repos.
|
|
36
35
|
#### 2.1 Method-one:rig add
|
|
37
|
-
rig add [your
|
|
38
|
-
|
|
36
|
+
rig add [your-git-ssh-url] [tag]
|
|
37
|
+
|
|
38
|
+
example:
|
|
39
39
|
```shell
|
|
40
40
|
rig add git@github.com:FlashHand/rig-demo-1.git 0.0.1
|
|
41
41
|
```
|
|
@@ -126,11 +126,14 @@ Modify package.rig.json5
|
|
|
126
126
|
'rig-demo-1': {
|
|
127
127
|
source: 'git@github.com:FlashHand/rig-demo-1.git',
|
|
128
128
|
version: '0.0.1',
|
|
129
|
-
// dev:true//Don't use dev mode in production
|
|
129
|
+
// dev:true//Don't use dev mode in production.
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
```
|
|
134
|
+
### In Electron Project
|
|
135
|
+
|
|
136
|
+
### In Vite Project
|
|
134
137
|
|
|
135
138
|
## Advantages
|
|
136
139
|
- 💡Rigjs only needs git.No need to publish packages to private registry.
|