create-nexora-next 0.3.7 → 0.4.7
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 +45 -45
- package/package.json +46 -46
- package/src/index.js +241 -266
- package/src/steps/01-create-next-app.js +18 -18
- package/src/steps/02-shadcn.js +38 -38
- package/src/steps/03-base-files.js +109 -109
- package/src/steps/04-providers.js +51 -51
- package/src/steps/05-i18n.js +41 -41
- package/src/steps/06-auth.js +30 -30
- package/src/steps/07-proxy.js +16 -16
- package/src/steps/08-install-deps.js +82 -82
- package/src/steps/09-husky.js +58 -58
- package/src/steps/10-axios.js +14 -14
- package/src/steps/11-patch-pkg.js +21 -21
- package/src/templates/files.js +908 -908
- package/src/utils/args.js +119 -0
- package/src/utils/runner.js +49 -49
- package/src/utils/safe-step.js +42 -42
- package/src/utils/writer.js +37 -37
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# create-nexora-next
|
|
2
|
-
|
|
3
|
-
> The official Next.js scaffolding CLI by Rayan — batteries included.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx create-nexora-next
|
|
9
|
-
pnpm dlx create-nexora-next
|
|
10
|
-
bunx create-nexora-next
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## What it sets up
|
|
14
|
-
|
|
15
|
-
### Always included
|
|
16
|
-
- Next.js (TypeScript, Tailwind CSS v4, ESLint, App Router, `~/` alias)
|
|
17
|
-
- shadcn/ui initialized with defaults
|
|
18
|
-
- Custom `globals.css` (squircle utilities, container, skeleton animation)
|
|
19
|
-
- `.prettierrc` with `prettier-plugin-tailwindcss`
|
|
20
|
-
- `.env.local` pre-populated
|
|
21
|
-
- Poppins font via `next/font/google`
|
|
22
|
-
- `cn()`, `toSlug()`, `trycatch()`, and other utils
|
|
23
|
-
- Typed constants (`TZ_COOKIE`, `SITE_URL`)
|
|
24
|
-
- SEO metadata scaffold
|
|
25
|
-
- `SileoToaster` component
|
|
26
|
-
- Providers pattern (`src/components/providers/`)
|
|
27
|
-
- nuqs adapter (URL state management)
|
|
28
|
-
- Core deps: `zustand`, `zod`, `react-hook-form`, `date-fns`, `nuqs`, `cookies-next`, `nextjs-toploader`
|
|
29
|
-
- Dev deps: `prettier`, `prettier-plugin-tailwindcss`, `babel-plugin-react-compiler`
|
|
30
|
-
|
|
31
|
-
### Optional features (prompted)
|
|
32
|
-
|
|
33
|
-
| Feature | What gets installed / created |
|
|
34
|
-
|---|---|
|
|
35
|
-
| Husky | `husky`, `lint-staged`, pre-commit hook |
|
|
36
|
-
| Localization | `next-intl`, `src/i18n/`, `locales/en.json`, `[locale]/page.tsx` |
|
|
37
|
-
| TanStack Query | `@tanstack/react-query`, persist client, query-client provider |
|
|
38
|
-
| Auth | proxy chain, auth validators, `src/apis/` |
|
|
39
|
-
| Theming | `next-themes`, theme provider |
|
|
40
|
-
| Animations | `motion`, `gsap` |
|
|
41
|
-
| Axios | `axios`, `axios.client.ts`, `axios.server.ts` |
|
|
42
|
-
|
|
43
|
-
## Requirements
|
|
44
|
-
|
|
45
|
-
- Node.js 18+
|
|
1
|
+
# create-nexora-next
|
|
2
|
+
|
|
3
|
+
> The official Next.js scaffolding CLI by Rayan — batteries included.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx create-nexora-next
|
|
9
|
+
pnpm dlx create-nexora-next
|
|
10
|
+
bunx create-nexora-next
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What it sets up
|
|
14
|
+
|
|
15
|
+
### Always included
|
|
16
|
+
- Next.js (TypeScript, Tailwind CSS v4, ESLint, App Router, `~/` alias)
|
|
17
|
+
- shadcn/ui initialized with defaults
|
|
18
|
+
- Custom `globals.css` (squircle utilities, container, skeleton animation)
|
|
19
|
+
- `.prettierrc` with `prettier-plugin-tailwindcss`
|
|
20
|
+
- `.env.local` pre-populated
|
|
21
|
+
- Poppins font via `next/font/google`
|
|
22
|
+
- `cn()`, `toSlug()`, `trycatch()`, and other utils
|
|
23
|
+
- Typed constants (`TZ_COOKIE`, `SITE_URL`)
|
|
24
|
+
- SEO metadata scaffold
|
|
25
|
+
- `SileoToaster` component
|
|
26
|
+
- Providers pattern (`src/components/providers/`)
|
|
27
|
+
- nuqs adapter (URL state management)
|
|
28
|
+
- Core deps: `zustand`, `zod`, `react-hook-form`, `date-fns`, `nuqs`, `cookies-next`, `nextjs-toploader`
|
|
29
|
+
- Dev deps: `prettier`, `prettier-plugin-tailwindcss`, `babel-plugin-react-compiler`
|
|
30
|
+
|
|
31
|
+
### Optional features (prompted)
|
|
32
|
+
|
|
33
|
+
| Feature | What gets installed / created |
|
|
34
|
+
|---|---|
|
|
35
|
+
| Husky | `husky`, `lint-staged`, pre-commit hook |
|
|
36
|
+
| Localization | `next-intl`, `src/i18n/`, `locales/en.json`, `[locale]/page.tsx` |
|
|
37
|
+
| TanStack Query | `@tanstack/react-query`, persist client, query-client provider |
|
|
38
|
+
| Auth | proxy chain, auth validators, `src/apis/` |
|
|
39
|
+
| Theming | `next-themes`, theme provider |
|
|
40
|
+
| Animations | `motion`, `gsap` |
|
|
41
|
+
| Axios | `axios`, `axios.client.ts`, `axios.server.ts` |
|
|
42
|
+
|
|
43
|
+
## Requirements
|
|
44
|
+
|
|
45
|
+
- Node.js 18+
|
|
46
46
|
- npm, pnpm, bun, or yarn
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "create-nexora-next",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The official Next.js scaffolding CLI by Rayan — batteries included.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"create-nexora-next": "src/index.js"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"src"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start": "node src/index.js",
|
|
14
|
-
"dev": "node src/index.js"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/grimstack/create-nexora-next.git"
|
|
19
|
-
},
|
|
20
|
-
"contributors": [
|
|
21
|
-
{
|
|
22
|
-
"name": "Chiatiah Rayan",
|
|
23
|
-
"email": "hello@rayanstudio.dev",
|
|
24
|
-
"url": "https://github.com/bbrainttech"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@clack/prompts": "^0.9.0",
|
|
29
|
-
"picocolors": "^1.1.1"
|
|
30
|
-
},
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=18.0.0"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"nextjs",
|
|
36
|
-
"scaffold",
|
|
37
|
-
"cli",
|
|
38
|
-
"create-app",
|
|
39
|
-
"rayan",
|
|
40
|
-
"next-intl",
|
|
41
|
-
"shadcn",
|
|
42
|
-
"tanstack"
|
|
43
|
-
],
|
|
44
|
-
"author": "Rayan",
|
|
45
|
-
"license": "MIT"
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "create-nexora-next",
|
|
3
|
+
"version": "0.4.7",
|
|
4
|
+
"description": "The official Next.js scaffolding CLI by Rayan — batteries included.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-nexora-next": "src/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "node src/index.js",
|
|
14
|
+
"dev": "node src/index.js"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/grimstack/create-nexora-next.git"
|
|
19
|
+
},
|
|
20
|
+
"contributors": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Chiatiah Rayan",
|
|
23
|
+
"email": "hello@rayanstudio.dev",
|
|
24
|
+
"url": "https://github.com/bbrainttech"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@clack/prompts": "^0.9.0",
|
|
29
|
+
"picocolors": "^1.1.1"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"nextjs",
|
|
36
|
+
"scaffold",
|
|
37
|
+
"cli",
|
|
38
|
+
"create-app",
|
|
39
|
+
"rayan",
|
|
40
|
+
"next-intl",
|
|
41
|
+
"shadcn",
|
|
42
|
+
"tanstack"
|
|
43
|
+
],
|
|
44
|
+
"author": "Rayan",
|
|
45
|
+
"license": "MIT"
|
|
46
|
+
}
|