create-clivly 0.7.0 → 0.7.2
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 +60 -20
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# create-clivly
|
|
2
2
|
|
|
3
|
-
Scaffold
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Scaffold Clivly into an existing app. `create-clivly` is the `create-*` entry
|
|
4
|
+
point for `clivly init`: it runs the same initializer, with the same flags,
|
|
5
|
+
against a version-pinned `clivly` runtime.
|
|
6
|
+
|
|
7
|
+
## Install / run
|
|
7
8
|
|
|
8
9
|
```bash
|
|
9
10
|
npm create clivly
|
|
@@ -13,34 +14,73 @@ npx create-clivly
|
|
|
13
14
|
pnpm create clivly
|
|
14
15
|
```
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
Stable releases publish on npm's `latest` tag. Use `@next` only when you are
|
|
18
|
+
deliberately validating a prerelease build.
|
|
19
|
+
|
|
20
|
+
## What it does
|
|
21
|
+
|
|
22
|
+
`create-clivly` currently:
|
|
23
|
+
|
|
24
|
+
- writes `clivly.config.ts`
|
|
25
|
+
- scaffolds the supported Clivly route files for your framework
|
|
26
|
+
- appends `.env` placeholders when they are missing
|
|
27
|
+
- optionally runs the pairing step unless you pass `--no-login`
|
|
18
28
|
|
|
19
|
-
It
|
|
20
|
-
Drizzle schema, and (unless `--no-login`) pairs this machine to your workspace.
|
|
29
|
+
It does **not** mutate your existing Drizzle schema.
|
|
21
30
|
|
|
22
31
|
If you run it from a workspace root, it looks for a supported Drizzle app in
|
|
23
|
-
that repo and scaffolds there. If it finds more than one, it stops
|
|
24
|
-
you the
|
|
32
|
+
that repo and scaffolds there. If it finds more than one candidate, it stops
|
|
33
|
+
and shows you the directories instead of guessing.
|
|
25
34
|
|
|
26
35
|
## Flags
|
|
27
36
|
|
|
28
|
-
These are forwarded
|
|
37
|
+
These are forwarded directly to `clivly init`:
|
|
29
38
|
|
|
30
39
|
| Flag | Effect |
|
|
31
40
|
| --- | --- |
|
|
32
|
-
| `--dry-run` | Print the plan and
|
|
33
|
-
| `--
|
|
34
|
-
| `--
|
|
41
|
+
| `--dry-run` | Print the plan and diff without writing files |
|
|
42
|
+
| `--diff` | Show the full diff for each file it would write |
|
|
43
|
+
| `--force` | Overwrite existing files and `.env` values |
|
|
44
|
+
| `--yes` | Accept detected defaults instead of prompting |
|
|
45
|
+
| `--schema <path\|package>` | Point at your Drizzle schema explicitly |
|
|
46
|
+
| `--db-import <specifier>` | Set the import specifier the scaffold uses for your Drizzle client |
|
|
47
|
+
| `--auth-import <specifier>` | Set the import specifier for your auth adapter |
|
|
35
48
|
| `--no-login` | Skip the browser pairing step |
|
|
36
|
-
| `--no-browser` |
|
|
49
|
+
| `--no-browser` | Print the approval URL instead of opening it |
|
|
50
|
+
|
|
51
|
+
Any flag that `clivly init` accepts also works here.
|
|
37
52
|
|
|
38
53
|
## Relationship to `clivly`
|
|
39
54
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
55
|
+
- `create-clivly` is the one-time scaffolder.
|
|
56
|
+
- `clivly` is the package you use afterwards for the runtime SDK and CLI.
|
|
57
|
+
|
|
58
|
+
Example runtime imports:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { createClivlySDK } from "clivly/sdk";
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Example follow-up CLI commands:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npx clivly status
|
|
68
|
+
npx clivly dev
|
|
69
|
+
npx clivly login
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`create-clivly` pins the `clivly` version it installs so the scaffolder and
|
|
73
|
+
runtime stay aligned.
|
|
74
|
+
|
|
75
|
+
## More docs
|
|
76
|
+
|
|
77
|
+
- Cloud onboarding guide:
|
|
78
|
+
[Connecting to Clivly Cloud](https://github.com/amani-joseph/clivly.com/blob/master/docs/guides/connecting-to-clivly-cloud.md)
|
|
79
|
+
- CLI reference:
|
|
80
|
+
[packages/cli/README.md](https://github.com/amani-joseph/clivly.com/blob/master/packages/cli/README.md)
|
|
81
|
+
- Release notes:
|
|
82
|
+
[CHANGELOG.md](https://github.com/amani-joseph/clivly.com/blob/master/CHANGELOG.md)
|
|
42
83
|
|
|
43
|
-
|
|
44
|
-
runtime never drift.
|
|
84
|
+
## License
|
|
45
85
|
|
|
46
|
-
MIT
|
|
86
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-clivly",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Scaffold Clivly into your app — the create-* entry point for `clivly init`.",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"clivly": "0.7.
|
|
37
|
+
"clivly": "0.7.2"
|
|
38
38
|
},
|
|
39
39
|
"author": "Joseph Amani",
|
|
40
40
|
"engines": {
|