create-zudoku 0.0.0-00fcb4a
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/LICENSE.md +9 -0
- package/README.md +108 -0
- package/dist/index.js +72 -0
- package/dist/templates/default/js/README-template.md +25 -0
- package/dist/templates/default/js/apis/openapi.yaml +806 -0
- package/dist/templates/default/js/eslintrc.json +4 -0
- package/dist/templates/default/js/gitignore +32 -0
- package/dist/templates/default/js/pages/example.mdx +9 -0
- package/dist/templates/default/js/pages/introduction.mdx +15 -0
- package/dist/templates/default/js/public/logo-dark.svg +1 -0
- package/dist/templates/default/js/public/logo-light.svg +1 -0
- package/dist/templates/default/js/zudoku.config.jsx +65 -0
- package/dist/templates/default/ts/README-template.md +25 -0
- package/dist/templates/default/ts/apis/openapi.yaml +806 -0
- package/dist/templates/default/ts/eslintrc.json +6 -0
- package/dist/templates/default/ts/gitignore +32 -0
- package/dist/templates/default/ts/pages/example.mdx +9 -0
- package/dist/templates/default/ts/pages/introduction.mdx +15 -0
- package/dist/templates/default/ts/public/banner-dark.svg +100 -0
- package/dist/templates/default/ts/public/banner.svg +100 -0
- package/dist/templates/default/ts/public/logo-dark.svg +1 -0
- package/dist/templates/default/ts/public/logo-light.svg +1 -0
- package/dist/templates/default/ts/tsconfig.json +16 -0
- package/dist/templates/default/ts/zudoku.config.tsx +66 -0
- package/dist/templates/zuplo/README-template.md +7 -0
- package/dist/templates/zuplo/gitignore +32 -0
- package/dist/templates/zuplo/pages/introduction.mdx +129 -0
- package/dist/templates/zuplo/pages/markdown.mdx +103 -0
- package/dist/templates/zuplo/public/banner-dark.svg +100 -0
- package/dist/templates/zuplo/public/banner.svg +100 -0
- package/dist/templates/zuplo/tsconfig.json +16 -0
- package/dist/templates/zuplo/zudoku.config.tsx +89 -0
- package/package.json +49 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Vercel, Inc. Copyright (c) 2024 Zuplo, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Create Zudoku App
|
|
2
|
+
|
|
3
|
+
Create a new Zudoku app in seconds with `create-zudoku`.
|
|
4
|
+
|
|
5
|
+
### Interactive
|
|
6
|
+
|
|
7
|
+
You can create a new project interactively by running:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm create zudoku@latest
|
|
11
|
+
# or
|
|
12
|
+
yarn create zudoku
|
|
13
|
+
# or
|
|
14
|
+
pnpm create zudoku
|
|
15
|
+
# or
|
|
16
|
+
bunx create-zudoku
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
You will be asked for the name of your project, and then whether you want to create a TypeScript project:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
✔ Would you like to use TypeScript? … No / Yes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Select **Yes** to install the necessary types/dependencies and create a new TS project.
|
|
26
|
+
|
|
27
|
+
### Non-interactive
|
|
28
|
+
|
|
29
|
+
You can also pass command line arguments to set up a new project non-interactively. See `create-zudoku --help`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
Usage: create-zudoku [project-directory] [options]
|
|
33
|
+
|
|
34
|
+
Options:
|
|
35
|
+
-V, --version output the version number
|
|
36
|
+
--ts, --typescript
|
|
37
|
+
|
|
38
|
+
Initialize as a TypeScript project. (default)
|
|
39
|
+
|
|
40
|
+
--js, --javascript
|
|
41
|
+
|
|
42
|
+
Initialize as a JavaScript project.
|
|
43
|
+
|
|
44
|
+
--eslint
|
|
45
|
+
|
|
46
|
+
Initialize with ESLint config.
|
|
47
|
+
|
|
48
|
+
--import-alias <alias-to-configure>
|
|
49
|
+
|
|
50
|
+
Specify import alias to use (default "@/*").
|
|
51
|
+
|
|
52
|
+
--empty
|
|
53
|
+
|
|
54
|
+
Initialize an empty project.
|
|
55
|
+
|
|
56
|
+
--use-npm
|
|
57
|
+
|
|
58
|
+
Explicitly tell the CLI to bootstrap the application using npm
|
|
59
|
+
|
|
60
|
+
--use-pnpm
|
|
61
|
+
|
|
62
|
+
Explicitly tell the CLI to bootstrap the application using pnpm
|
|
63
|
+
|
|
64
|
+
--use-yarn
|
|
65
|
+
|
|
66
|
+
Explicitly tell the CLI to bootstrap the application using Yarn
|
|
67
|
+
|
|
68
|
+
--use-bun
|
|
69
|
+
|
|
70
|
+
Explicitly tell the CLI to bootstrap the application using Bun
|
|
71
|
+
|
|
72
|
+
-e, --example [name]|[github-url]
|
|
73
|
+
|
|
74
|
+
An example to bootstrap the app with. You can use an example name
|
|
75
|
+
from the official Zudoku repo or a GitHub URL. The URL can use
|
|
76
|
+
any branch and/or subdirectory
|
|
77
|
+
|
|
78
|
+
--example-path <path-to-example>
|
|
79
|
+
|
|
80
|
+
In a rare case, your GitHub URL might contain a branch name with
|
|
81
|
+
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
82
|
+
In this case, you must specify the path to the example separately:
|
|
83
|
+
--example-path foo/bar
|
|
84
|
+
|
|
85
|
+
--reset-preferences
|
|
86
|
+
|
|
87
|
+
Explicitly tell the CLI to reset any stored preferences
|
|
88
|
+
|
|
89
|
+
--skip-install
|
|
90
|
+
|
|
91
|
+
Explicitly tell the CLI to skip installing packages
|
|
92
|
+
|
|
93
|
+
--yes
|
|
94
|
+
|
|
95
|
+
Use previous preferences or defaults for all options that were not
|
|
96
|
+
explicitly specified, without prompting.
|
|
97
|
+
|
|
98
|
+
-h, --help display help for command
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Why use Create Zudoku App?
|
|
102
|
+
|
|
103
|
+
`create-zudoku` allows you to create a new Zudoku app within seconds. It is officially maintained by the creators of Zudoku, and includes a number of benefits:
|
|
104
|
+
|
|
105
|
+
- **Interactive Experience**: Running `npm create zudoku@latest` (with no arguments) launches an interactive experience that guides you through setting up a project.
|
|
106
|
+
- **Zero Dependencies**: Initializing a project is as quick as one second. Create Zudoku App has zero dependencies.
|
|
107
|
+
- **Offline Support**: Create Zudoku App will automatically detect if you're offline and bootstrap your project using your local package cache.
|
|
108
|
+
- **Support for Examples**: Create Zudoku App can bootstrap your application using an example from the Zudoku examples collection (e.g. `npx create-zudoku --example my-docs`).
|