sitevision-cli 0.3.1-beta.2 → 0.4.0-beta.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.
- package/dist/app.d.ts +1 -2
- package/dist/app.js +19 -14
- package/dist/cli.js +48 -24
- package/dist/commands/build.d.ts +1 -1
- package/dist/commands/build.js +8 -32
- package/dist/commands/deploy.js +19 -20
- package/dist/commands/dev.js +12 -32
- package/dist/commands/index.js +1 -1
- package/dist/commands/info.js +3 -53
- package/dist/commands/setup-signing.js +2 -2
- package/dist/commands/sign.d.ts +1 -1
- package/dist/commands/sign.js +14 -20
- package/dist/components/DevPropertiesForm.d.ts +1 -2
- package/dist/components/DevPropertiesForm.js +15 -30
- package/dist/components/InfoScreen.d.ts +1 -2
- package/dist/components/InfoScreen.js +2 -50
- package/dist/components/MainMenu.d.ts +1 -2
- package/dist/components/MainMenu.js +5 -70
- package/dist/components/PasswordInput.d.ts +1 -2
- package/dist/components/PasswordInput.js +7 -19
- package/dist/components/ProcessOutput.d.ts +1 -2
- package/dist/components/ProcessOutput.js +3 -5
- package/dist/components/SetupFlow.d.ts +1 -2
- package/dist/components/SetupFlow.js +12 -87
- package/dist/components/SigningPropertiesForm.d.ts +1 -2
- package/dist/components/SigningPropertiesForm.js +7 -18
- package/dist/components/StatusIndicator.d.ts +1 -2
- package/dist/components/StatusIndicator.js +6 -12
- package/dist/components/TextInput.d.ts +1 -2
- package/dist/components/TextInput.js +5 -13
- package/dist/components/WelcomeScreen.d.ts +14 -0
- package/dist/components/WelcomeScreen.js +53 -0
- package/dist/utils/branding.d.ts +12 -0
- package/dist/utils/branding.js +29 -0
- package/dist/utils/config.d.ts +17 -0
- package/dist/utils/config.js +57 -0
- package/dist/utils/password-prompt.js +2 -2
- package/dist/utils/process-runner.d.ts +6 -6
- package/dist/utils/process-runner.js +12 -42
- package/dist/utils/project-detection.d.ts +1 -1
- package/dist/utils/project-detection.js +7 -3
- package/dist/utils/sitevision-api.js +1 -1
- package/dist/utils/version-check.js +3 -3
- package/dist/utils/webpack-runner.d.ts +2 -2
- package/dist/utils/webpack-runner.js +15 -42
- package/dist/utils/zip.js +5 -7
- package/package.json +23 -30
- package/readme.md +11 -7
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitevision-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"svc": "dist/cli.js"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=22"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
@@ -21,42 +21,35 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@napi-rs/keyring": "^1.3.0",
|
|
24
|
-
"ink": "^
|
|
24
|
+
"ink": "^7.1.0",
|
|
25
25
|
"ink-spinner": "^5.0.0",
|
|
26
|
-
"meow": "^
|
|
27
|
-
"react": "^19.2.
|
|
26
|
+
"meow": "^14.1.0",
|
|
27
|
+
"react": "^19.2.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@types/
|
|
30
|
+
"@eslint/compat": "^2.1.0",
|
|
31
|
+
"@sindresorhus/tsconfig": "^8.1.0",
|
|
32
|
+
"@types/node": "^26.0.0",
|
|
33
|
+
"@types/react": "^19.2.17",
|
|
33
34
|
"@vdemedes/prettier-config": "^2.0.1",
|
|
34
|
-
"ava": "^
|
|
35
|
-
"
|
|
36
|
-
"eslint-
|
|
37
|
-
"eslint-plugin-react": "^7.
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"xo": "^0.53.1"
|
|
35
|
+
"ava": "^8.0.1",
|
|
36
|
+
"eslint-config-xo-react": "^0.30.1",
|
|
37
|
+
"eslint-plugin-react": "^7.37.5",
|
|
38
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
39
|
+
"ink-testing-library": "^4.0.0",
|
|
40
|
+
"prettier": "^3.8.4",
|
|
41
|
+
"tsx": "^4.22.4",
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"xo": "^3.0.2"
|
|
44
44
|
},
|
|
45
45
|
"ava": {
|
|
46
|
-
"extensions":
|
|
47
|
-
"ts"
|
|
48
|
-
"tsx"
|
|
49
|
-
|
|
46
|
+
"extensions": [
|
|
47
|
+
"ts",
|
|
48
|
+
"tsx"
|
|
49
|
+
],
|
|
50
50
|
"nodeArguments": [
|
|
51
|
-
"--
|
|
51
|
+
"--import=tsx"
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"xo": {
|
|
55
|
-
"extends": "xo-react",
|
|
56
|
-
"prettier": true,
|
|
57
|
-
"rules": {
|
|
58
|
-
"react/prop-types": "off"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
54
|
"prettier": "@vdemedes/prettier-config"
|
|
62
55
|
}
|
package/readme.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This CLI was largely built on the back of the [sitevision-scripts](https://github.com/sitevision/sitevision-scripts) project.
|
|
4
4
|
However, these scripts have some limitations:
|
|
5
|
+
|
|
5
6
|
- Clunky for use with environments requiring signed packages
|
|
6
7
|
- Clunkly management of credentials and unsecure handling of credentials
|
|
7
8
|
- No type safety
|
|
@@ -33,6 +34,7 @@ svc
|
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
On first run (or if setup is incomplete), the CLI will:
|
|
37
|
+
|
|
36
38
|
1. Check if `node_modules` exists and offer to run `npm install` if missing
|
|
37
39
|
2. Check if dev properties are configured and offer to set them up if missing
|
|
38
40
|
3. Check if you have setup signing credentials and offer to do so if missing
|
|
@@ -40,6 +42,7 @@ On first run (or if setup is incomplete), the CLI will:
|
|
|
40
42
|
5. Show the main menu
|
|
41
43
|
|
|
42
44
|
Use arrow keys to navigate and Enter to select:
|
|
45
|
+
|
|
43
46
|
- **Dev** - Start development server with watch mode
|
|
44
47
|
- **Dev (Signed)** - Development with automatic signing before each deploy
|
|
45
48
|
- **Build** - Build a dist bundle
|
|
@@ -113,13 +116,13 @@ Create this file in your project root for deployment configuration:
|
|
|
113
116
|
|
|
114
117
|
```json
|
|
115
118
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
"domain": "your-site.sitevision.se",
|
|
120
|
+
"siteName": "YourSite",
|
|
121
|
+
"addonName": "your-addon",
|
|
122
|
+
"username": "your-email@example.com",
|
|
123
|
+
"useHTTPForDevDeploy": false,
|
|
124
|
+
"signingUsername": "your-developer-account@example.com",
|
|
125
|
+
"certificateName": "optional-certificate-name"
|
|
123
126
|
}
|
|
124
127
|
```
|
|
125
128
|
|
|
@@ -144,6 +147,7 @@ are never written anywhere.
|
|
|
144
147
|
### Signing Credentials
|
|
145
148
|
|
|
146
149
|
Signing credentials are used to sign apps via developer.sitevision.se:
|
|
150
|
+
|
|
147
151
|
- `signingUsername` - Your developer.sitevision.se account
|
|
148
152
|
- `certificateName` - Optional, if you have multiple certificates
|
|
149
153
|
|