sitevision-cli 0.1.0 → 0.1.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +8 -65
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sitevision-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "svc": "dist/cli.js"
package/readme.md CHANGED
@@ -10,9 +10,6 @@ However, these scripts have some limitations:
10
10
 
11
11
  - **Interactive Menu** - Full-screen TUI with arrow key navigation
12
12
  - **Project Detection** - Automatically detects Sitevision projects
13
- - **Webpack Integration** - Built-in webpack bundling for development and production
14
- - **App Signing** - Sign apps via developer.sitevision.se for production deployment
15
- - **Live Feedback** - Real-time status updates and progress indicators
16
13
  - **Two Modes** - Interactive menu OR direct command execution
17
14
  - **Automatic Setup** - Guided setup for dev properties and signing credentials
18
15
  - **Secure Credentials** - Passwords can be entered per-session (not stored on disk)
@@ -20,7 +17,7 @@ However, these scripts have some limitations:
20
17
  ## Install
21
18
 
22
19
  ```bash
23
- npm install --global @sitevision/cli
20
+ npm install --global sitevision-cli
24
21
  ```
25
22
 
26
23
  ## Usage
@@ -38,17 +35,18 @@ svc
38
35
  On first run (or if setup is incomplete), the CLI will:
39
36
  1. Check if `node_modules` exists and offer to run `npm install` if missing
40
37
  2. Check if dev properties are configured and offer to set them up if missing
41
- 3. Display project information
42
- 4. Show the main menu
38
+ 3. Check if you have setup signing credentials and offer to do so if missing
39
+ 4. Display project information
40
+ 5. Show the main menu
43
41
 
44
42
  Use arrow keys to navigate and Enter to select:
45
43
  - **Dev** - Start development server with watch mode
46
44
  - **Dev (Signed)** - Development with automatic signing before each deploy
47
- - **Build** - Build for production
48
- - **Sign** - Sign the app for production deployment
49
- - **Deploy** - Deploy to dev server
45
+ - **Build** - Build a dist bundle
46
+ - **Sign** - Sign built dist bundle
47
+ - **Deploy** - Deploy to configured development environment
50
48
  - **Deploy (Force)** - Force deploy (overwrite existing)
51
- - **Deploy Production** - Deploy signed app to production
49
+ - **Deploy Production** - Deploy signed app to configured production environment
52
50
  - **Info** - Show project info
53
51
  - **Exit**
54
52
 
@@ -136,61 +134,6 @@ Signing credentials are used to sign apps via developer.sitevision.se:
136
134
 
137
135
  The signing password is never stored on disk - it's prompted for each session.
138
136
 
139
- ## Architecture
140
-
141
-
142
-
143
-
144
-
145
- ### Directory Structure
146
-
147
- ```
148
- source/
149
- ├── cli.tsx # CLI entry point and argument parsing
150
- ├── app.tsx # Main app component and state management
151
- ├── commands/ # Command implementations
152
- │ ├── types.ts # Command type definitions
153
- │ ├── index.ts # Command exports
154
- │ ├── dev.tsx # Development server with watch mode
155
- │ ├── build.tsx # Production build
156
- │ ├── deploy.tsx # Deployment to dev/production
157
- │ ├── sign.tsx # App signing
158
- │ ├── setup-signing.tsx # Signing credentials setup
159
- │ └── info.tsx # Project info display
160
- ├── components/ # Reusable UI components
161
- │ ├── MainMenu.tsx # Interactive main menu
162
- │ ├── SetupFlow.tsx # Initial setup wizard
163
- │ ├── DevPropertiesForm.tsx # Dev properties configuration
164
- │ ├── SigningPropertiesForm.tsx # Signing setup form
165
- │ ├── PasswordInput.tsx # Secure password input
166
- │ ├── TextInput.tsx # Text input component
167
- │ ├── InfoScreen.tsx # Project info display
168
- │ ├── StatusIndicator.tsx # Status/progress indicator
169
- │ └── ProcessOutput.tsx # Process output display
170
- ├── types/ # TypeScript type definitions
171
- │ └── index.ts # Shared types
172
- └── utils/ # Utility modules
173
- ├── project-detection.ts # Project validation and paths
174
- ├── sitevision-api.ts # Sitevision REST API client
175
- ├── webpack-runner.ts # Webpack integration
176
- ├── zip.ts # Zip file utilities
177
- ├── process-runner.ts # Process spawning
178
- └── password-prompt.ts # Password prompting
179
- ```
180
-
181
- ## Development
182
-
183
- ```bash
184
- # Install dependencies
185
- npm install
186
-
187
- # Build
188
- npm run build
189
-
190
- # Watch mode
191
- npm run dev
192
- ```
193
-
194
137
  ## License
195
138
 
196
139
  MIT