create-cloudflare 1.0.0 → 2.0.0-next.1
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 +15 -0
- package/dist/cli.js +57221 -0
- package/dist/frameworks/astro/index.js +20 -0
- package/dist/frameworks/index.js +26 -0
- package/dist/frameworks/next/index.js +37 -0
- package/dist/frameworks/next/templates.js +38 -0
- package/dist/frameworks/nuxt/index.js +19 -0
- package/dist/frameworks/qwik/index.js +23 -0
- package/dist/frameworks/react/index.js +18 -0
- package/dist/frameworks/remix/index.js +14 -0
- package/dist/frameworks/solid/index.js +33 -0
- package/dist/frameworks/solid/templates.js +12 -0
- package/dist/frameworks/svelte/index.js +50 -0
- package/dist/frameworks/svelte/templates.js +14 -0
- package/dist/frameworks/vue/index.js +16 -0
- package/dist/helpers/cli.js +12 -0
- package/dist/helpers/codemod.js +88 -0
- package/dist/helpers/command.js +47 -0
- package/dist/helpers/files.js +76 -0
- package/dist/helpers/interactive.js +25 -0
- package/dist/types.js +2 -0
- package/package.json +49 -28
- package/templates/examples/js/.prettierrc +5 -0
- package/templates/examples/js/package.json +14 -0
- package/templates/examples/js/src/ab-test.js +41 -0
- package/templates/examples/js/src/proxy.js +22 -0
- package/templates/examples/js/src/redirect.js +13 -0
- package/templates/examples/js/src/router.js +26 -0
- package/templates/examples/js/src/worker.js +37 -0
- package/templates/examples/js/wrangler.toml +7 -0
- package/templates/examples/ts/.prettierrc +5 -0
- package/templates/examples/ts/package.json +15 -0
- package/templates/examples/ts/src/ab-test.ts +41 -0
- package/templates/examples/ts/src/proxy.ts +22 -0
- package/templates/examples/ts/src/redirect.ts +13 -0
- package/templates/examples/ts/src/router.ts +26 -0
- package/templates/examples/ts/src/worker.ts +37 -0
- package/templates/examples/ts/tsconfig.json +105 -0
- package/templates/examples/ts/worker-configuration.d.ts +13 -0
- package/templates/examples/ts/wrangler.toml +7 -0
- package/templates/simple/js/.prettierrc +5 -0
- package/templates/simple/js/package.json +14 -0
- package/templates/simple/js/src/worker.js +15 -0
- package/templates/simple/js/wrangler.toml +3 -0
- package/templates/simple/ts/.prettierrc +5 -0
- package/templates/simple/ts/package.json +14 -0
- package/templates/simple/ts/src/worker.ts +29 -0
- package/templates/simple/ts/tsconfig.json +105 -0
- package/templates/simple/ts/wrangler.toml +3 -0
- package/bin.js +0 -2
- package/index.d.ts +0 -7
- package/index.js +0 -1
- package/license +0 -9
- package/readme.md +0 -72
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# create-cloudflare
|
|
2
|
+
|
|
3
|
+
`create-cloudflare` is a scaffolding tool meant to help users get started with Cloudflare Pages using their framework of choice as quickly and easily as possible.
|
|
4
|
+
|
|
5
|
+
Instead of having to choose from a set of pre-constructed templates, this tool allows you to run the creation commands of your desired framework directly. This means that you can configure it with all the options the
|
|
6
|
+
|
|
7
|
+
To get started, run the following command:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm create cloudflare
|
|
11
|
+
# or
|
|
12
|
+
yarn create cloudflare
|
|
13
|
+
# or
|
|
14
|
+
pnmp create cloudflare
|
|
15
|
+
```
|