@mehdad67/create-apitogo 0.1.24

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