@igniter-js/cli 0.2.0 → 0.2.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.
- package/README.md +57 -0
- package/dist/index.js +1137 -961
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1132 -956
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @igniter-js/cli
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@igniter-js/cli)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
The official Command-Line Interface (CLI) for the Igniter.js framework. This tool is designed to enhance developer productivity by automating common tasks like project scaffolding and running the development server.
|
|
7
|
+
|
|
8
|
+
## Role in the Ecosystem
|
|
9
|
+
|
|
10
|
+
The `@igniter-js/cli` package is a key part of the Igniter.js developer experience. It provides a set of simple commands that handle complex setup and execution processes, allowing you to focus on writing code instead of configuring boilerplate.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
The recommended way to use the CLI is via `npx`, which ensures you are always using the latest version without needing a global installation.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx @igniter-js/cli <command>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
The CLI provides two main commands to manage your project's lifecycle.
|
|
23
|
+
|
|
24
|
+
### `igniter init`
|
|
25
|
+
|
|
26
|
+
The `init` command scaffolds a new, production-ready Igniter.js project from scratch. It runs an interactive setup wizard that configures your project structure, dependencies, and optional features like the Store and Queues.
|
|
27
|
+
|
|
28
|
+
**Example:**
|
|
29
|
+
```bash
|
|
30
|
+
# Create a new project in a directory named 'my-api'
|
|
31
|
+
npx @igniter-js/cli init my-api
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
For more details, see the **[igniter init documentation](https://github.com/felipebarcelospro/igniter-js/wiki/05-CLI-and-Tooling/01-igniter-init.md)**.
|
|
35
|
+
|
|
36
|
+
### `igniter dev`
|
|
37
|
+
|
|
38
|
+
The `dev` command starts the Igniter.js development server. It watches your files for changes and provides hot-reloading. Its most powerful feature is the interactive mode.
|
|
39
|
+
|
|
40
|
+
**Example:**
|
|
41
|
+
```bash
|
|
42
|
+
# Start the development server in interactive mode
|
|
43
|
+
igniter dev --interactive
|
|
44
|
+
|
|
45
|
+
# Start the server and manage the Next.js dev server alongside it
|
|
46
|
+
igniter dev --interactive --framework nextjs
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
For more details, see the **[igniter dev documentation](https://github.com/felipebarcelospro/igniter-js/wiki/05-CLI-and-Tooling/02-igniter-dev.md)**.
|
|
50
|
+
|
|
51
|
+
## Contributing
|
|
52
|
+
|
|
53
|
+
Contributions are welcome! Please see the main [CONTRIBUTING.md](/CONTRIBUTING.md) file for details on how to get started.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
This package is licensed under the [MIT License](/LICENSE).
|