sitevision-cli 0.3.1-beta.1 → 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.
Files changed (48) hide show
  1. package/dist/app.d.ts +1 -2
  2. package/dist/app.js +19 -14
  3. package/dist/cli.js +76 -24
  4. package/dist/commands/build.d.ts +1 -1
  5. package/dist/commands/build.js +8 -32
  6. package/dist/commands/deploy.js +19 -20
  7. package/dist/commands/dev.js +12 -32
  8. package/dist/commands/index.js +1 -1
  9. package/dist/commands/info.js +3 -53
  10. package/dist/commands/setup-signing.js +2 -2
  11. package/dist/commands/sign.d.ts +1 -1
  12. package/dist/commands/sign.js +14 -20
  13. package/dist/components/DevPropertiesForm.d.ts +1 -2
  14. package/dist/components/DevPropertiesForm.js +15 -30
  15. package/dist/components/InfoScreen.d.ts +1 -2
  16. package/dist/components/InfoScreen.js +2 -50
  17. package/dist/components/MainMenu.d.ts +1 -2
  18. package/dist/components/MainMenu.js +5 -70
  19. package/dist/components/PasswordInput.d.ts +1 -2
  20. package/dist/components/PasswordInput.js +7 -19
  21. package/dist/components/ProcessOutput.d.ts +1 -2
  22. package/dist/components/ProcessOutput.js +3 -5
  23. package/dist/components/SetupFlow.d.ts +1 -2
  24. package/dist/components/SetupFlow.js +12 -87
  25. package/dist/components/SigningPropertiesForm.d.ts +1 -2
  26. package/dist/components/SigningPropertiesForm.js +7 -18
  27. package/dist/components/StatusIndicator.d.ts +1 -2
  28. package/dist/components/StatusIndicator.js +6 -12
  29. package/dist/components/TextInput.d.ts +1 -2
  30. package/dist/components/TextInput.js +5 -13
  31. package/dist/components/WelcomeScreen.d.ts +14 -0
  32. package/dist/components/WelcomeScreen.js +53 -0
  33. package/dist/utils/branding.d.ts +12 -0
  34. package/dist/utils/branding.js +29 -0
  35. package/dist/utils/config.d.ts +17 -0
  36. package/dist/utils/config.js +57 -0
  37. package/dist/utils/password-prompt.js +2 -2
  38. package/dist/utils/process-runner.d.ts +6 -6
  39. package/dist/utils/process-runner.js +12 -42
  40. package/dist/utils/project-detection.d.ts +1 -1
  41. package/dist/utils/project-detection.js +7 -3
  42. package/dist/utils/sitevision-api.js +1 -1
  43. package/dist/utils/version-check.js +3 -3
  44. package/dist/utils/webpack-runner.d.ts +2 -2
  45. package/dist/utils/webpack-runner.js +15 -42
  46. package/dist/utils/zip.js +5 -7
  47. package/package.json +23 -30
  48. package/readme.md +11 -7
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "sitevision-cli",
3
- "version": "0.3.1-beta.1",
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": ">=16"
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": "^6.6.0",
24
+ "ink": "^7.1.0",
25
25
  "ink-spinner": "^5.0.0",
26
- "meow": "^11.0.0",
27
- "react": "^19.2.3"
26
+ "meow": "^14.1.0",
27
+ "react": "^19.2.7"
28
28
  },
29
29
  "devDependencies": {
30
- "@sindresorhus/tsconfig": "^3.0.1",
31
- "@types/node": "^25.0.3",
32
- "@types/react": "^19.2.7",
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": "^5.2.0",
35
- "chalk": "^5.2.0",
36
- "eslint-config-xo-react": "^0.27.0",
37
- "eslint-plugin-react": "^7.32.2",
38
- "eslint-plugin-react-hooks": "^4.6.0",
39
- "ink-testing-library": "^3.0.0",
40
- "prettier": "^2.8.7",
41
- "ts-node": "^10.9.1",
42
- "typescript": "^5.0.3",
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": "module",
48
- "tsx": "module"
49
- },
46
+ "extensions": [
47
+ "ts",
48
+ "tsx"
49
+ ],
50
50
  "nodeArguments": [
51
- "--loader=ts-node/esm"
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
- "domain": "your-site.sitevision.se",
117
- "siteName": "YourSite",
118
- "addonName": "your-addon",
119
- "username": "your-email@example.com",
120
- "useHTTPForDevDeploy": false,
121
- "signingUsername": "your-developer-account@example.com",
122
- "certificateName": "optional-certificate-name"
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