@shivaedev/create-app 0.2.2 → 0.4.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/CHANGELOG.md +16 -0
- package/README.md +5 -1
- package/dist/cli.js +72 -72
- package/dist/createApp.d.ts +3 -1
- package/dist/createApp.d.ts.map +1 -1
- package/dist/createApp.js +8 -3
- package/dist/createApp.js.map +1 -1
- package/dist/initializeGit.d.ts +6 -0
- package/dist/initializeGit.d.ts.map +1 -0
- package/dist/initializeGit.js +27 -0
- package/dist/initializeGit.js.map +1 -0
- package/docs/roadmap.md +4 -1
- package/package.json +2 -2
- package/src/cli.ts +5 -3
- package/src/createApp.ts +8 -3
- package/src/initializeGit.ts +34 -0
- package/template.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 - 2026-10-16
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Initialize a generated app's Git repository with one commit after installation when Git is available and no repository encloses the destination; `--no-git` skips initialization.
|
|
8
|
+
- Include a GitHub Actions workflow that runs the generated app's lint, typecheck, build and PostgreSQL tests through its `ci` script.
|
|
9
|
+
- Include Railway TypeScript infrastructure configuration for PostgreSQL, web and worker services, deployment migrations and an HTTP health check, with a CLI deployment walkthrough in the quickstart.
|
|
10
|
+
- Run setup after Git initialization to install dependencies and Quality's pre-commit hook before the initial commit; failed lint or typecheck gates block that commit.
|
|
11
|
+
- Include `setup` for dependencies and checkout hooks, and `ready` for the same lint, typecheck, build and test gate as CI.
|
|
12
|
+
|
|
13
|
+
## 0.3.0 - 2026-10-16
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Generated apps include a story kit for authenticated HTTP and PostgreSQL tests, plus screen and migration stories, with guidance to extend the kit for new features.
|
|
18
|
+
|
|
3
19
|
## 0.2.2 - 2026-10-16
|
|
4
20
|
|
|
5
21
|
### Changed
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Use Node 24 or newer and pnpm. The package contains a snapshot of the starter ma
|
|
|
18
18
|
pnpm create @shivaedev/app my-app
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
The folder argument may include a parent path. Its final folder name becomes the package name and must be a lowercase npm name. The destination must be absent or empty, including hidden files. The command runs `pnpm
|
|
21
|
+
The folder argument may include a parent path. Its final folder name becomes the package name and must be a lowercase npm name. The destination must be absent or empty, including hidden files. The command runs `pnpm run setup` in the generated app to install dependencies and Quality's pre-commit hook, and reports setup failure with a nonzero exit status. Setup installs the hook only when the app has its own `.git`; it leaves an enclosing repository's hooks alone.
|
|
22
22
|
|
|
23
23
|
After installation, follow the printed steps:
|
|
24
24
|
|
|
@@ -29,6 +29,10 @@ pnpm dev
|
|
|
29
29
|
|
|
30
30
|
The command writes a git-ignored `.env.local` with a fresh authentication secret and local development and test database URLs. Existing files are never overwritten. Database names replace dots and hyphens in the app name with underscores, prefix a name starting with a digit with `app_`, and limit the stem to 58 characters before adding `_dev` and `_test`.
|
|
31
31
|
|
|
32
|
+
When Git is available and the destination is outside an existing repository, the command initializes a repository before setup and commits the generated files and installed lockfile afterward. The first commit runs Quality's lint and typecheck gates; a failed gate leaves it uncommitted. It uses your Git identity, with a local commit identity when none is configured. Pass `--no-git` to skip repository creation. A generated app includes a GitHub Actions workflow that runs `pnpm run ci` against PostgreSQL and a `.railway/railway.ts` that defines PostgreSQL, builds the web and worker services, runs migrations before deployment, starts both processes and checks `/health` on the web service.
|
|
33
|
+
|
|
34
|
+
Run `pnpm run setup` after cloning the generated repository to install dependencies and the hook for that checkout. Run `pnpm ready` for the full local gate: lint, typecheck, build and tests, using the same script as CI.
|
|
35
|
+
|
|
32
36
|
`pnpm dev` first runs `pnpm db:setup` to prepare both databases through `@shivaedev/local-postgres`. Have local PostgreSQL 18.6 on port 55432 or Docker available; see [local-postgres machine setup](https://github.com/ShivaeDev/platform/tree/main/packages/local-postgres#install-and-machine-setup). `pnpm test` loads `TEST_DATABASE_URL` from `.env.local`.
|
|
33
37
|
|
|
34
38
|
The command also supports `--help` and `--version`. See the [framework quickstart](https://github.com/ShivaeDev/platform/blob/main/docs/framework/quickstart.md) for the starter's application and deployment workflow.
|