sitevision-cli 0.0.0 → 0.1.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/cli.js +5 -0
- package/package.json +4 -2
- package/readme.md +7 -7
package/dist/cli.js
CHANGED
|
@@ -3,9 +3,14 @@ import React from 'react';
|
|
|
3
3
|
import { render } from 'ink';
|
|
4
4
|
import { Text, Box } from 'ink';
|
|
5
5
|
import meow from 'meow';
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
import updateNotifier from 'update-notifier';
|
|
6
8
|
import App from './app.js';
|
|
7
9
|
import { getCommand } from './commands/index.js';
|
|
8
10
|
import { requireProject } from './utils/project-detection.js';
|
|
11
|
+
// Check for updates
|
|
12
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
13
|
+
updateNotifier({ pkg }).notify();
|
|
9
14
|
const cli = meow(`
|
|
10
15
|
Usage
|
|
11
16
|
$ svc Start interactive menu
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitevision-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"svc": "dist/cli.js"
|
|
@@ -21,12 +21,14 @@
|
|
|
21
21
|
"ink": "^6.6.0",
|
|
22
22
|
"ink-spinner": "^5.0.0",
|
|
23
23
|
"meow": "^11.0.0",
|
|
24
|
-
"react": "^19.2.3"
|
|
24
|
+
"react": "^19.2.3",
|
|
25
|
+
"update-notifier": "^7.0.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@sindresorhus/tsconfig": "^3.0.1",
|
|
28
29
|
"@types/node": "^25.0.3",
|
|
29
30
|
"@types/react": "^19.2.7",
|
|
31
|
+
"@types/update-notifier": "^6.0.8",
|
|
30
32
|
"@vdemedes/prettier-config": "^2.0.1",
|
|
31
33
|
"ava": "^5.2.0",
|
|
32
34
|
"chalk": "^5.2.0",
|
package/readme.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# Sitevision CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This CLI was largely built on the back of the [sitevision-scripts](https://github.com/sitevision/sitevision-scripts) project.
|
|
4
|
+
However, these scripts have some limitations:
|
|
5
|
+
- Clunky for use with environments requiring signed packages
|
|
6
|
+
- Clunkly management of credentials and unsecure handling of credentials
|
|
7
|
+
- No type safety
|
|
4
8
|
|
|
5
9
|
## Features
|
|
6
10
|
|
|
7
11
|
- **Interactive Menu** - Full-screen TUI with arrow key navigation
|
|
8
|
-
- **Standalone CLI** - No dependency on sitevision-scripts, handles everything natively
|
|
9
12
|
- **Project Detection** - Automatically detects Sitevision projects
|
|
10
13
|
- **Webpack Integration** - Built-in webpack bundling for development and production
|
|
11
14
|
- **App Signing** - Sign apps via developer.sitevision.se for production deployment
|
|
@@ -135,12 +138,9 @@ The signing password is never stored on disk - it's prompted for each session.
|
|
|
135
138
|
|
|
136
139
|
## Architecture
|
|
137
140
|
|
|
138
|
-
This CLI is a standalone tool that handles all Sitevision development tasks natively:
|
|
139
141
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
- **App Signing** - Signs apps via developer.sitevision.se API
|
|
143
|
-
- **TUI Components** - Rich terminal UI built with Ink
|
|
142
|
+
|
|
143
|
+
|
|
144
144
|
|
|
145
145
|
### Directory Structure
|
|
146
146
|
|