@ruck-plugins/nvm-manager 1.0.0

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.
Binary file
@@ -0,0 +1 @@
1
+ *{box-sizing:border-box;margin:0;padding:0}html,body{margin:0;padding:0;height:100%;overflow:hidden}::-webkit-scrollbar{display:none}.nvm-header-top{padding:12px 20px;border-bottom:1px solid var(--n-border-color)}.nvm-header-tabs{padding:0 20px}.n-thing-header__title,.n-thing-main__description,.n-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.install-log .n-text,.n-list-header .n-text{white-space:normal!important}.n-thing-main__description .n-text{white-space:normal!important;overflow:visible!important}.n-list.n-list--small .n-list-item{padding:4px 12px!important}.n-thing-main__description{margin-top:2px!important}.n-thing-header{margin-bottom:2px!important}
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Node 版本管理</title>
7
+ <script type="module" crossorigin src="./assets/index-BtmH6vcs.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./assets/index-D1zUK5O-.css">
9
+ </head>
10
+ <body>
11
+ <div id="app"></div>
12
+ </body>
13
+ </html>
package/logo.png ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@ruck-plugins/nvm-manager",
3
+ "version": "1.0.0"
4
+ }
package/plugin.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@ruck-plugins/nvm-manager",
3
+ "version": "1.0.0",
4
+ "logo": "logo.png",
5
+ "displayName": "Node 版本管理",
6
+ "pluginType": "ui",
7
+ "group": "dev",
8
+ "description": "基于 NVM for Windows,可视化管理 Node.js 版本与 npm 源",
9
+ "author": "JIAHE",
10
+ "height": 600,
11
+ "permissions": [
12
+ { "shell_execute": ["nvm", "nrm", "node", "npm", "where"] }
13
+ ],
14
+ "features": [
15
+ {
16
+ "code": "node",
17
+ "explain": "切换 Node 版本",
18
+ "mainPush": true,
19
+ "cmds": [
20
+ "node",
21
+ "node version",
22
+ "切换node",
23
+ "nvm",
24
+ {
25
+ "type": "regex",
26
+ "match": "/^(切换|node|nvm)\\s*(\\d[\\d.]*|lts)$/i",
27
+ "label": "切换到指定 Node 版本"
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "code": "npm",
33
+ "explain": "切换 npm 源",
34
+ "mainPush": true,
35
+ "cmds": [
36
+ "npm源",
37
+ "换源",
38
+ "npm registry",
39
+ {
40
+ "type": "regex",
41
+ "match": "/^(换源|npm|npmrc)\\s*(taobao|tencent|cnpm|official|yarn)$/i",
42
+ "label": "切换到指定 npm 源"
43
+ }
44
+ ]
45
+ }
46
+ ]
47
+ }