@plugin-light/cli 1.0.1 → 1.0.13
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 +8 -4
- package/package.json +4 -3
- package/script/figma/variables/config.js +15 -0
- package/script/figma/variables/data//345/237/272/347/241/200/350/211/262/351/230/266.json +1171 -0
- package/script/figma/variables/data//350/257/255/346/204/217/350/211/262/346/235/277.json +1716 -0
- package/script/figma/variables/data-parsed/base.css +40 -0
- package/script/figma/variables/data-parsed/semantic.css +63 -0
- package/script/figma/variables/deprecated/open-api.js +59 -0
- package/script/figma/variables/parse-base.js +56 -0
- package/script/figma/variables/parse-semantic.js +78 -0
- package/script/release/monorepo/pipeline-release.script.js +102 -0
- package/script/release/monorepo/release-core.js +158 -0
- package/script/release/monorepo/release.script.js +25 -0
- package/script/release/monorepo/version-tip.js +27 -0
- package/script/release/press/local-release.script.js +16 -0
- package/script/release/press/pipeline-release.script.js +49 -0
- package/script/release/press/pre-commit.js +79 -0
- package/script/release/press/prepare-release.js +40 -0
- package/script/release/press/release-core.js +26 -0
- package/script/release/utils/config.js +8 -0
- package/script/release/utils/utils.js +52 -0
- /package/script/release/{prepare.js → press/utils/prepare.js} +0 -0
- /package/script/release/{release.js → press/utils/release.js} +0 -0
- /package/script/release/{version.js → press/utils/version.js} +0 -0
package/README.md
CHANGED
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
可以在 `nodejs` 或 `bash` 中使用。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## 1. 作者
|
|
15
|
+
|
|
16
|
+
**novlan1**
|
|
17
|
+
|
|
18
|
+
## 2. 如何使用
|
|
15
19
|
|
|
16
20
|
安装
|
|
17
21
|
|
|
@@ -34,7 +38,7 @@ publishUtil [prod|test]
|
|
|
34
38
|
npx light-cli publish `[prod|test]`
|
|
35
39
|
```
|
|
36
40
|
|
|
37
|
-
## 默认值
|
|
41
|
+
## 3. 默认值
|
|
38
42
|
|
|
39
43
|
```ts
|
|
40
44
|
export const DEFAULT_PUBLISH_OPTIONS = {
|
|
@@ -44,7 +48,7 @@ export const DEFAULT_PUBLISH_OPTIONS = {
|
|
|
44
48
|
} as const;
|
|
45
49
|
```
|
|
46
50
|
|
|
47
|
-
## 环境变量
|
|
51
|
+
## 4. 环境变量
|
|
48
52
|
|
|
49
53
|
| 变量 | 对应名称 |
|
|
50
54
|
| ---------------------------- | -------- |
|
|
@@ -53,6 +57,6 @@ export const DEFAULT_PUBLISH_OPTIONS = {
|
|
|
53
57
|
| VUE_APP_LOCAL_PUBLISH_METHOD | method |
|
|
54
58
|
| VUE_APP_LOCAL_PUBLISH_PATH | path |
|
|
55
59
|
|
|
56
|
-
## 更新日志
|
|
60
|
+
## 5. 更新日志
|
|
57
61
|
|
|
58
62
|
[点此查看](./CHANGELOG.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugin-light/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"homepage": "https://novlan1.github.io/docs/plugin-light/zh/plugin-light-cli.html",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/novlan1/plugin-light/issues"
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"bin"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"axios": "^1.12.2",
|
|
25
|
+
"t-comm": "^3.0.3",
|
|
26
|
+
"@plugin-light/shared": "^1.0.2"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"build": "rm -rf lib && rollup -c",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const CONFIG = {
|
|
4
|
+
SOURCE_FILE_BASE: path.resolve(__dirname, './data/基础色阶.json'),
|
|
5
|
+
TARGET_FILE_BASE: path.resolve(__dirname, './data-parsed/base.css'),
|
|
6
|
+
SOURCE_FILE_SEMANTIC: path.resolve(__dirname, './data/语意色板.json'),
|
|
7
|
+
TARGET_FILE_SEMANTIC: path.resolve(__dirname, './data-parsed/semantic.css'),
|
|
8
|
+
|
|
9
|
+
VAR_PREFIX: 'pm',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
module.exports = {
|
|
14
|
+
CONFIG,
|
|
15
|
+
};
|