create-vitnode-app 1.2.0-canary.2 → 1.2.0-canary.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/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # (VitNode) Create App
2
+
3
+ This package is a CLI tool to create a new VitNode app quickly.
4
+
5
+ Script based on [Create Next App](https://nextjs.org/).
6
+
7
+ <p align="center">
8
+ <br>
9
+ <a href="https://vitnode.com/" target="_blank">
10
+ <picture>
11
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/VitNode/vitnode/canary/assets/logo/vitnode_logo_dark.svg">
12
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/VitNode/vitnode/canary/assets/logo/vitnode_logo_light.svg">
13
+ <img alt="VitNode Logo" src="https://raw.githubusercontent.com/VitNode/vitnode/canary/assets/logo/vitnode_logo_light.svg" width="400">
14
+ </picture>
15
+ </a>
16
+ <br>
17
+ <br>
18
+ </p>
19
+
20
+ ## Usage
21
+
22
+ ```bash
23
+ npx create-vitnode-app@latest
24
+ ```
25
+
26
+ or
27
+
28
+ ```bash
29
+ pnpm create vitnode-app@latest
30
+ ```
31
+
32
+ ## Options
33
+
34
+ | Option | Description |
35
+ | ------------------- | ---------------------------------------------------------- |
36
+ | `--package-manager` | Specify the package manager to use. Support `npm`, `pnpm`. |
37
+ | `--eslint` | Initialize with eslint config. |
38
+ | `--skip-install` | Skip installing packages after initializing the project. |
@@ -0,0 +1,12 @@
1
+ import { defineVitNodeDrizzleConfig } from '@vitnode/core/drizzle.config';
2
+
3
+ import { POSTGRES_URL, vitNodeApiConfig } from './src/vitnode.api.config';
4
+
5
+ export default defineVitNodeDrizzleConfig({
6
+ vitNodeApiConfig,
7
+ out: './migrations/',
8
+ dialect: 'postgresql',
9
+ dbCredentials: {
10
+ url: POSTGRES_URL,
11
+ },
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vitnode-app",
3
- "version": "1.2.0-canary.2",
3
+ "version": "1.2.0-canary.3",
4
4
  "description": "Create a new VitNode app in seconds.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "@types/validate-npm-package-name": "^4.0.2",
35
35
  "eslint": "^9.25.1",
36
36
  "typescript": "^5.8.3",
37
- "eslint-config-typescript-vitnode": "1.2.0-canary.2"
37
+ "eslint-config-typescript-vitnode": "1.2.0-canary.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build:cli": "tsc && node dist/src/prepare/prepare.js",