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.
Files changed (54) hide show
  1. package/README.md +15 -0
  2. package/dist/cli.js +57221 -0
  3. package/dist/frameworks/astro/index.js +20 -0
  4. package/dist/frameworks/index.js +26 -0
  5. package/dist/frameworks/next/index.js +37 -0
  6. package/dist/frameworks/next/templates.js +38 -0
  7. package/dist/frameworks/nuxt/index.js +19 -0
  8. package/dist/frameworks/qwik/index.js +23 -0
  9. package/dist/frameworks/react/index.js +18 -0
  10. package/dist/frameworks/remix/index.js +14 -0
  11. package/dist/frameworks/solid/index.js +33 -0
  12. package/dist/frameworks/solid/templates.js +12 -0
  13. package/dist/frameworks/svelte/index.js +50 -0
  14. package/dist/frameworks/svelte/templates.js +14 -0
  15. package/dist/frameworks/vue/index.js +16 -0
  16. package/dist/helpers/cli.js +12 -0
  17. package/dist/helpers/codemod.js +88 -0
  18. package/dist/helpers/command.js +47 -0
  19. package/dist/helpers/files.js +76 -0
  20. package/dist/helpers/interactive.js +25 -0
  21. package/dist/types.js +2 -0
  22. package/package.json +49 -28
  23. package/templates/examples/js/.prettierrc +5 -0
  24. package/templates/examples/js/package.json +14 -0
  25. package/templates/examples/js/src/ab-test.js +41 -0
  26. package/templates/examples/js/src/proxy.js +22 -0
  27. package/templates/examples/js/src/redirect.js +13 -0
  28. package/templates/examples/js/src/router.js +26 -0
  29. package/templates/examples/js/src/worker.js +37 -0
  30. package/templates/examples/js/wrangler.toml +7 -0
  31. package/templates/examples/ts/.prettierrc +5 -0
  32. package/templates/examples/ts/package.json +15 -0
  33. package/templates/examples/ts/src/ab-test.ts +41 -0
  34. package/templates/examples/ts/src/proxy.ts +22 -0
  35. package/templates/examples/ts/src/redirect.ts +13 -0
  36. package/templates/examples/ts/src/router.ts +26 -0
  37. package/templates/examples/ts/src/worker.ts +37 -0
  38. package/templates/examples/ts/tsconfig.json +105 -0
  39. package/templates/examples/ts/worker-configuration.d.ts +13 -0
  40. package/templates/examples/ts/wrangler.toml +7 -0
  41. package/templates/simple/js/.prettierrc +5 -0
  42. package/templates/simple/js/package.json +14 -0
  43. package/templates/simple/js/src/worker.js +15 -0
  44. package/templates/simple/js/wrangler.toml +3 -0
  45. package/templates/simple/ts/.prettierrc +5 -0
  46. package/templates/simple/ts/package.json +14 -0
  47. package/templates/simple/ts/src/worker.ts +29 -0
  48. package/templates/simple/ts/tsconfig.json +105 -0
  49. package/templates/simple/ts/wrangler.toml +3 -0
  50. package/bin.js +0 -2
  51. package/index.d.ts +0 -7
  52. package/index.js +0 -1
  53. package/license +0 -9
  54. 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
+ ```