@oinone/cli 7.2.6 → 7.2.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 +6 -6
- package/README_zh-CN.md +6 -6
- package/package.json +1 -1
- package/template-6.4.0/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0/packages/ss-boot/src/main.ts +1 -2
- package/template-7.2.0/npmrc +2 -0
- package/template-7.2.0/packages/ss-admin-widget/package.json +3 -2
- package/template-7.2.0/packages/ss-admin-widget/rollup.config.js +2 -0
- package/template-7.2.0/packages/ss-boot/public/favicon.ico +0 -0
- package/template-7.2.0/packages/ss-boot/src/main.ts +1 -2
- package/template-7.2.0/packages/ss-oinone/package.json +3 -2
- package/template-7.2.0/packages/ss-oinone/rollup.config.js +2 -0
- package/template-7.2.0/packages/ss-project/package.json +3 -2
- package/template-7.2.0/packages/ss-project/rollup.config.js +2 -0
package/README.md
CHANGED
|
@@ -36,11 +36,11 @@ npx @oinone/cli create my-project
|
|
|
36
36
|
### Quick create (recommended)
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
39
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
oinone-frontend create my-project-enterprise --oinone-version 7.2.0 --edition enterprise --
|
|
43
|
+
oinone-frontend create my-project-enterprise --oinone-version 7.2.0 --edition enterprise --auth-token <token> --write-project-credential
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### More examples
|
|
@@ -54,25 +54,25 @@ oinone-frontend create
|
|
|
54
54
|
Create project (non-interactive):
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
57
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
Create project with `--company-name` / `--project-name`:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
oinone-frontend create --company-name ss --project-name oms --oinone-version 7.2.0 --edition community
|
|
63
|
+
oinone-frontend create --company-name ss --project-name oms --oinone-version 7.2.0 --edition community
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Dry-run (no files written):
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community --
|
|
69
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community --dry-run
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
Create project (Oinone `6.4.*`):
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
oinone-frontend create my-project-64 --oinone-version 6.4.0 --edition community
|
|
75
|
+
oinone-frontend create my-project-64 --oinone-version 6.4.0 --edition community
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
### Check environment
|
package/README_zh-CN.md
CHANGED
|
@@ -36,11 +36,11 @@ npx @oinone/cli create my-project
|
|
|
36
36
|
### 快速创建(推荐)
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
39
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
oinone-frontend create my-project-enterprise --oinone-version 7.2.0 --edition enterprise --
|
|
43
|
+
oinone-frontend create my-project-enterprise --oinone-version 7.2.0 --edition enterprise --auth-token <token> --write-project-credential
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### 更多示例
|
|
@@ -54,25 +54,25 @@ oinone-frontend create
|
|
|
54
54
|
创建项目(静默式):
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
57
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
使用 `--company-name` / `--project-name` 创建:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
oinone-frontend create --company-name ss --project-name oms --oinone-version 7.2.0 --edition community
|
|
63
|
+
oinone-frontend create --company-name ss --project-name oms --oinone-version 7.2.0 --edition community
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
演练模式(不落盘):
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
oinone-frontend create my-project --oinone-version 7.2.0 --edition community --
|
|
69
|
+
oinone-frontend create my-project --oinone-version 7.2.0 --edition community --dry-run
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
创建工程(Oinone `6.4.*`):
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
oinone-frontend create my-project-64 --oinone-version 6.4.0 --edition community
|
|
75
|
+
oinone-frontend create my-project-64 --oinone-version 6.4.0 --edition community
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
### 检查环境
|
package/package.json
CHANGED
|
Binary file
|
package/template-7.2.0/npmrc
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ss/admin-widget",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.ts",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
8
|
"prebuild": "rimraf dist",
|
|
8
9
|
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/
|
|
10
|
+
"build-css": "[ -f './dist/ss-admin-widget.scss' ] && sass ./dist/ss-admin-widget.scss ./dist/ss-admin-widget.css || exit 0",
|
|
10
11
|
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/
|
|
12
|
+
"build-css-win": "IF EXIST ./dist/ss-admin-widget.scss (sass ./dist/ss-admin-widget.scss ./dist/ss-admin-widget.css) ELSE (exit 0)",
|
|
12
13
|
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
14
|
"postpublish": "node ./scripts/postpublish.js"
|
|
14
15
|
},
|
|
Binary file
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ss/oinone",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.ts",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
8
|
"prebuild": "rimraf dist",
|
|
8
9
|
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/
|
|
10
|
+
"build-css": "[ -f './dist/ss-oinone.scss' ] && sass ./dist/ss-oinone.scss ./dist/ss-oinone.css || exit 0",
|
|
10
11
|
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/
|
|
12
|
+
"build-css-win": "IF EXIST ./dist/ss-oinone.scss (sass ./dist/ss-oinone.scss ./dist/ss-oinone.css) ELSE (exit 0)",
|
|
12
13
|
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
14
|
"postpublish": "node ./scripts/postpublish.js"
|
|
14
15
|
},
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ss/project",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.ts",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
8
|
"prebuild": "rimraf dist",
|
|
8
9
|
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/
|
|
10
|
+
"build-css": "[ -f './dist/ss-project.scss' ] && sass ./dist/ss-project.scss ./dist/ss-project.css || exit 0",
|
|
10
11
|
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/
|
|
12
|
+
"build-css-win": "IF EXIST ./dist/ss-project.scss (sass ./dist/ss-project.scss ./dist/ss-project.css) ELSE (exit 0)",
|
|
12
13
|
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
14
|
"postpublish": "node ./scripts/postpublish.js"
|
|
14
15
|
},
|