@nextsparkjs/cli 0.1.0-beta.1 → 0.1.0-beta.3
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/LICENSE +21 -0
- package/README.md +29 -6
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 NextSpark
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,24 +4,47 @@ CLI tool for NextSpark development workflow.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
The CLI is included with `@nextsparkjs/core`. You can use it with npx:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx nextspark <command>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or install globally:
|
|
14
|
+
|
|
7
15
|
```bash
|
|
8
16
|
npm install -g @nextsparkjs/cli
|
|
9
|
-
# or use with npx
|
|
10
|
-
npx @nextsparkjs/cli <command>
|
|
11
17
|
```
|
|
12
18
|
|
|
13
19
|
## Commands
|
|
14
20
|
|
|
21
|
+
### Initialize Project
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx nextspark init # Interactive wizard
|
|
25
|
+
npx nextspark init --preset saas # Use SaaS preset
|
|
26
|
+
npx nextspark init --preset blog # Use Blog preset
|
|
27
|
+
npx nextspark init --preset crm # Use CRM preset
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Development
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
nextspark dev # Start dev server with active theme
|
|
34
|
+
nextspark build # Production build
|
|
35
|
+
nextspark registry # Build component registries
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Database
|
|
39
|
+
|
|
15
40
|
```bash
|
|
16
|
-
nextspark
|
|
17
|
-
nextspark migrate # Run database migrations
|
|
18
|
-
nextspark registry # Build component registries
|
|
41
|
+
nextspark migrate # Run database migrations
|
|
19
42
|
```
|
|
20
43
|
|
|
21
44
|
## Requirements
|
|
22
45
|
|
|
23
46
|
- Node.js 18+
|
|
24
|
-
-
|
|
47
|
+
- pnpm recommended
|
|
25
48
|
|
|
26
49
|
## Documentation
|
|
27
50
|
|