create-next-pro-cli 0.1.11 → 0.1.13
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/.github/workflows/ci.yml +38 -0
- package/README.md +104 -86
- package/dist/bin.js +5466 -0
- package/install.sh +63 -8
- package/package.json +6 -2
- package/public/cnp-banner.svg +81 -0
- package/src/lib/addComponent.ts +53 -33
- package/src/lib/addPage.ts +70 -39
- package/src/lib/utils.test.ts +23 -0
- package/src/lib/utils.ts +24 -0
- package/src/scaffold.ts +20 -4
- package/.husky/commit-msg +0 -2
- package/.husky/pre-commit +0 -2
- package/CODE_OF_CONDUCT.md +0 -33
- package/CONTRIBUTING.md +0 -44
- package/FONCTIONALITY.md +0 -25
- package/templates/Projects/default/README.md +0 -36
package/FONCTIONALITY.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Features of the create-next-pro binary
|
|
2
|
-
|
|
3
|
-
- Advanced Next.js project creation with options (TypeScript, ESLint, Tailwind, src/, Turbopack, i18n, import alias)
|
|
4
|
-
- `addpage` command:
|
|
5
|
-
- Add a page with templates (layout, page, loading, etc.)
|
|
6
|
-
- Automatically create folders/files in `src/app/[locale]` and `src/ui`
|
|
7
|
-
- Add translation files in `messages/<locale>`
|
|
8
|
-
- Supports nested pages (e.g. `PageParent.PageChild`)
|
|
9
|
-
- Creates in the parent folder
|
|
10
|
-
- Appends JSON to the parent object
|
|
11
|
-
- `addcomponent` command:
|
|
12
|
-
- Add a component to a page or globally
|
|
13
|
-
- Create the TSX file in `src/ui/<Page>/` or `src/ui/_global/`
|
|
14
|
-
- Add the component to the page or global translation JSON
|
|
15
|
-
- `rmpage` command:
|
|
16
|
-
- Remove a page and all its associated files
|
|
17
|
-
- Folders/files in `src/ui`, `src/app/[locale]`, and `messages/<locale>`
|
|
18
|
-
- Bash autocompletion:
|
|
19
|
-
- Suggests commands and existing pages
|
|
20
|
-
- Supports nested pages for completion
|
|
21
|
-
- Installation script proposed at first launch
|
|
22
|
-
- Fast CLI mode (non-interactive) and interactive mode (prompts)
|
|
23
|
-
- File generation from customizable templates
|
|
24
|
-
- Name handling (respects user input casing)
|
|
25
|
-
- Optional addition of the autocompletion script to `.bashrc` via prompt
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// README.mdThis is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-pro`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
|
2
|
-
|
|
3
|
-
## Getting Started
|
|
4
|
-
|
|
5
|
-
First, run the development server:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm run dev
|
|
9
|
-
# or
|
|
10
|
-
yarn dev
|
|
11
|
-
# or
|
|
12
|
-
pnpm dev
|
|
13
|
-
# or
|
|
14
|
-
bun dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
18
|
-
|
|
19
|
-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
20
|
-
|
|
21
|
-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
|
22
|
-
|
|
23
|
-
## Learn More
|
|
24
|
-
|
|
25
|
-
To learn more about Next.js, take a look at the following resources:
|
|
26
|
-
|
|
27
|
-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
28
|
-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
29
|
-
|
|
30
|
-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
|
31
|
-
|
|
32
|
-
## Deploy on Vercel
|
|
33
|
-
|
|
34
|
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
35
|
-
|
|
36
|
-
Check out [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|