@cellajs/create-cella 0.5.1 → 0.6.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/README.md +12 -9
- package/dist/index.js +518 -903
- package/dist/index.js.map +1 -1
- package/package.json +20 -14
package/README.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# @cellajs/create-cella
|
|
2
2
|
|
|
3
|
-
CLI tool to
|
|
3
|
+
CLI tool to create a new app from [the cella template](https://github.com/cellajs/cella).
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
pnpm create @cellajs/cella my-app
|
|
9
9
|
```
|
|
10
|
+
|
|
11
|
+
The directory must be new or empty, and its name becomes the app's slug: lowercase letters and digits, starting with a letter, single hyphens between parts and at least 4 characters besides hyphens. A run that fails or is interrupted removes what it wrote.
|
|
12
|
+
|
|
10
13
|
## CLI Options
|
|
11
14
|
|
|
12
15
|
```bash
|
|
@@ -15,32 +18,32 @@ pnpm create @cellajs/cella [directory] [options]
|
|
|
15
18
|
|
|
16
19
|
| Option | Description |
|
|
17
20
|
| --- | --- |
|
|
18
|
-
| `--template <path>` | Use a custom template
|
|
19
|
-
| `--app-index <number>` | Set this app's number for its dev ports
|
|
21
|
+
| `--template <path>` | Use a custom template: a local git checkout, whose tracked files are copied, or `github:user/repo` |
|
|
22
|
+
| `--app-index <number>` | Set this app's number for its dev ports, a whole number from 0 to 9, not 4 |
|
|
20
23
|
| `--admin-email <email>` | Set the admin email for the initial seed user |
|
|
21
24
|
| `-v, --version` | Output the current version |
|
|
22
25
|
| `-h, --help` | Display the help message |
|
|
23
26
|
|
|
24
27
|
## What It Does
|
|
25
28
|
|
|
26
|
-
1. Creates a new
|
|
29
|
+
1. Creates a new app from a cella template snapshot
|
|
27
30
|
2. Lets you choose an app number that is free on this machine, and the seed admin email
|
|
28
|
-
3. Cleans the template, generates
|
|
31
|
+
3. Cleans the template, generates the app's config and points coding agents at the template's rules and skills
|
|
29
32
|
4. Initializes a fresh git repository with an initial commit
|
|
30
|
-
5. Adds the
|
|
33
|
+
5. Adds the cella upstream remote for `pnpm cella upgrade`
|
|
34
|
+
|
|
35
|
+
The template names the files step 3 changes in its `cella/create-cella.json`. A template without that file is refused.
|
|
31
36
|
|
|
32
37
|
## Development
|
|
33
38
|
|
|
34
39
|
```bash
|
|
35
|
-
cd cli/create-cella
|
|
36
|
-
|
|
37
40
|
# Type check
|
|
38
41
|
pnpm ts
|
|
39
42
|
|
|
40
43
|
# Lint
|
|
41
44
|
pnpm lint:fix
|
|
42
45
|
|
|
43
|
-
# Try it out
|
|
46
|
+
# Try it out (recreates ../cella-try-app)
|
|
44
47
|
pnpm try
|
|
45
48
|
|
|
46
49
|
# Run tests
|