create-cloudflare 2.0.7 → 2.0.9
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 -2
- package/dist/cli.js +18440 -435
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/templates/common/js/.editorconfig +13 -0
- package/templates/common/js/.prettierrc +2 -1
- package/templates/common/js/wrangler.toml +3 -4
- package/templates/common/ts/.editorconfig +13 -0
- package/templates/common/ts/.prettierrc +2 -1
- package/templates/common/ts/wrangler.toml +3 -4
- package/templates/simple/js/.editorconfig +13 -0
- package/templates/simple/js/.prettierrc +2 -1
- package/templates/simple/ts/.editorconfig +13 -0
- package/templates/simple/ts/.prettierrc +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# create-cloudflare
|
|
2
2
|
|
|
3
|
-
A CLI for creating and deploying new applications to Cloudflare.
|
|
3
|
+
A CLI for creating and deploying new applications to [Cloudflare](https://developers.cloudflare.com/).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Setup via Interactive CLI
|
|
8
|
+
|
|
9
|
+
To create new applications via interactive CLI, run:
|
|
4
10
|
|
|
5
11
|
```bash
|
|
6
12
|
npm create cloudflare@latest
|
|
@@ -10,7 +16,44 @@ pnpm create cloudflare@latest
|
|
|
10
16
|
yarn create cloudflare
|
|
11
17
|
```
|
|
12
18
|
|
|
19
|
+
### Setup via CLI Arguments
|
|
20
|
+
|
|
21
|
+
#### New Websites or Web applications via Frameworks
|
|
22
|
+
|
|
23
|
+
To create a new website or web framework without interaction, run:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm create cloudflare@latest -- --type webFramework --framework <frameworkName>
|
|
27
|
+
# or
|
|
28
|
+
pnpm create cloudflare@latest ...
|
|
29
|
+
# or
|
|
30
|
+
yarn create cloudflare ...
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Currently supported framework options: `angular`, `astro`, `docusaurus`, `gatsby`, `hono`, `next`, `nuxt`, `qwik`, `react`, `remix`, `solid`, `svelte`, `vue`.
|
|
34
|
+
|
|
35
|
+
#### New Workers via Templates
|
|
36
|
+
|
|
37
|
+
To create a new Javascript "Hello World" worker, run:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm create cloudflare@latest hello-world -- --type simple --no-ts
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
To create a new Typescript "Hello World" worker, run:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm create cloudflare@latest hello-world -- --type simple --ts
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Current template options are: `simple`, `common`, or `chatgptPlugin`.
|
|
50
|
+
|
|
51
|
+
#### Additional arguments
|
|
52
|
+
|
|
53
|
+
| `--deploy` | deploy your application automatically, bypassing the interactive prompt |
|
|
54
|
+
| `--no-deploy` | create and scaffold a new application and bypass deployment prompt |
|
|
55
|
+
|
|
13
56
|
### Community
|
|
14
57
|
|
|
15
|
-
- Join us [on Discord](https://discord.
|
|
58
|
+
- Join us [on Discord](https://discord.cloudflare.com)
|
|
16
59
|
- File an issue [on Github](https://github.com/cloudflare/workers-sdk/issues/new/choose)
|