create-cloudflare 2.40.2 → 2.41.0
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/dist/cli.js +817 -718
- package/package.json +4 -4
- package/templates/angular/c3.ts +5 -129
- package/templates/angular/pages/c3.ts +134 -0
- package/{templates-experimental/angular → templates/angular/workers}/c3.ts +2 -2
- package/templates/gatsby/c3.ts +5 -45
- package/templates/gatsby/pages/c3.ts +50 -0
- package/{templates-experimental/gatsby → templates/gatsby/workers}/c3.ts +2 -2
- package/templates/hello-world/js/package.json +2 -2
- package/templates/hello-world/ts/package.json +2 -2
- package/templates/nuxt/c3.ts +5 -130
- package/templates/nuxt/pages/c3.ts +145 -0
- package/templates/nuxt/{templates → pages/templates}/wrangler.jsonc +0 -3
- package/{templates-experimental/nuxt → templates/nuxt/workers}/c3.ts +12 -2
- package/templates/vue/c3.ts +5 -25
- package/{templates-experimental/vue → templates/vue/pages}/c3.ts +5 -8
- package/templates/vue/workers/c3.ts +98 -0
- package/templates/vue/workers/js/server/index.js +13 -0
- package/templates/vue/workers/js/src/App.vue +107 -0
- package/templates/vue/workers/js/src/components/HelloWorld.vue +47 -0
- package/templates/vue/workers/js/vite.config.js +21 -0
- package/templates/vue/workers/js/wrangler.jsonc +12 -0
- package/templates/vue/workers/ts/server/index.ts +13 -0
- package/templates/vue/workers/ts/src/App.vue +107 -0
- package/templates/vue/workers/ts/src/components/HelloWorld.vue +44 -0
- package/templates/vue/workers/ts/tsconfig.worker.json +8 -0
- package/templates/vue/workers/ts/vite.config.ts +21 -0
- package/templates/vue/workers/ts/worker-configuration.d.ts +6 -0
- package/templates/vue/workers/ts/wrangler.jsonc +12 -0
- package/templates-experimental/hello-world-with-assets/js/package.json +2 -2
- package/templates-experimental/hello-world-with-assets/ts/package.json +2 -2
- package/templates-experimental/vue/templates/wrangler.jsonc +0 -10
- /package/templates/angular/{templates → pages/templates}/src/_routes.json +0 -0
- /package/{templates-experimental/angular → templates/angular/pages}/templates/src/server.ts +0 -0
- /package/templates/angular/{templates → pages/templates}/tools/copy-files.mjs +0 -0
- /package/templates/angular/{templates → workers/templates}/src/server.ts +0 -0
- /package/{templates-experimental/angular → templates/angular/workers}/templates/wrangler.jsonc +0 -0
- /package/{templates-experimental/gatsby → templates/gatsby/workers}/templates/wrangler.jsonc +0 -0
- /package/{templates-experimental/nuxt → templates/nuxt/pages}/templates/env.d.ts +0 -0
- /package/{templates-experimental/nuxt → templates/nuxt/pages}/templates/worker-configuration.d.ts +0 -0
- /package/templates/nuxt/{templates → workers/templates}/env.d.ts +0 -0
- /package/templates/nuxt/{templates → workers/templates}/worker-configuration.d.ts +0 -0
- /package/{templates-experimental/nuxt → templates/nuxt/workers}/templates/wrangler.jsonc +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps<{
|
|
3
|
+
msg: string
|
|
4
|
+
}>()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="greetings">
|
|
9
|
+
<h1 class="green">{{ msg }}</h1>
|
|
10
|
+
<h3>
|
|
11
|
+
You’ve successfully created a project with
|
|
12
|
+
<a href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
13
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a> +
|
|
14
|
+
<a href="https://developers.cloudflare.com/workers/" target="_blank" rel="noopener"
|
|
15
|
+
>Cloudflare Workers</a
|
|
16
|
+
>. What's next?
|
|
17
|
+
</h3>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
h1 {
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
font-size: 2.6rem;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: -10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h3 {
|
|
30
|
+
font-size: 1.2rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.greetings h1,
|
|
34
|
+
.greetings h3 {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-width: 1024px) {
|
|
39
|
+
.greetings h1,
|
|
40
|
+
.greetings h3 {
|
|
41
|
+
text-align: left;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
+
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
6
|
+
|
|
7
|
+
import { cloudflare } from "@cloudflare/vite-plugin"
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [
|
|
12
|
+
vue(),
|
|
13
|
+
vueDevTools(),
|
|
14
|
+
cloudflare()
|
|
15
|
+
],
|
|
16
|
+
resolve: {
|
|
17
|
+
alias: {
|
|
18
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
})
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"cf-typegen": "wrangler types"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@cloudflare/vitest-pool-workers": "^0.
|
|
13
|
+
"@cloudflare/vitest-pool-workers": "^0.7.5",
|
|
14
14
|
"typescript": "^5.5.2",
|
|
15
|
-
"vitest": "~
|
|
15
|
+
"vitest": "~3.0.7",
|
|
16
16
|
"wrangler": "^3.101.0"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates-experimental/angular → templates/angular/workers}/templates/wrangler.jsonc
RENAMED
|
File without changes
|
/package/{templates-experimental/gatsby → templates/gatsby/workers}/templates/wrangler.jsonc
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental/nuxt → templates/nuxt/pages}/templates/worker-configuration.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|