-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: graduate hello world workers + assets templates #8379
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 37a023c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -48,7 +48,7 @@ export const isUpdateAvailable = async () => { | |||
export const C3_DEFAULTS: C3Args = { | |||
projectName: new Haikunator().haikunate({ tokenHex: true }), | |||
category: "hello-world", | |||
type: "hello-world", | |||
type: "hello-world-with-assets", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me.
c7fa27a
to
e31239c
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-wrangler-8379 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/8379/npm-package-wrangler-8379 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-wrangler-8379 dev path/to/script.js Additional artifacts:cloudflare-workers-bindings-extension: wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-workers-bindings-extension-8379 -O ./cloudflare-workers-bindings-extension.0.0.0-v1dae6334f.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v1dae6334f.vsix create-cloudflare: npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-create-cloudflare-8379 --no-auto-update @cloudflare/kv-asset-handler: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-kv-asset-handler-8379 miniflare: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-miniflare-8379 @cloudflare/pages-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-pages-shared-8379 @cloudflare/unenv-preset: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-unenv-preset-8379 @cloudflare/vite-plugin: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-vite-plugin-8379 @cloudflare/vitest-pool-workers: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-vitest-pool-workers-8379 @cloudflare/workers-editor-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-workers-editor-shared-8379 @cloudflare/workers-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-workers-shared-8379 @cloudflare/workflows-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13729499416/npm-package-cloudflare-workflows-shared-8379 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
@@ -128,7 +127,6 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())( | |||
expect(project.path).toExist(); | |||
expect(output).toContain(`type Scheduled Worker (Cron Trigger)`); | |||
expect(output).toContain(`lang JavaScript`); | |||
expect(output).toContain(`no git`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this is failing now - I would've expected this to start failing after #8290. This question definitely isn't there if you pass in --no-git on c3 latest, so it's not a result of this PR. Were the tests just cached all that time? 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps because these tests were skipped in experimental mode?
describe.skipIf(experimental || ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the no git thing applies regardless of whether experimental, so they should have have been failing in the experimental:false runs too 🤔
e04363c
to
ac2ae06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -128,7 +127,6 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())( | |||
expect(project.path).toExist(); | |||
expect(output).toContain(`type Scheduled Worker (Cron Trigger)`); | |||
expect(output).toContain(`lang JavaScript`); | |||
expect(output).toContain(`no git`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps because these tests were skipped in experimental mode?
describe.skipIf(experimental || ...
@@ -32,7 +32,35 @@ type WorkerTestConfig = RunnerConfig & { | |||
|
|||
function getWorkerTests(opts: { experimental: boolean }): WorkerTestConfig[] { | |||
if (opts.experimental) { | |||
// none currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@@ -48,7 +48,7 @@ export const isUpdateAvailable = async () => { | |||
export const C3_DEFAULTS: C3Args = { | |||
projectName: new Haikunator().haikunate({ tokenHex: true }), | |||
category: "hello-world", | |||
type: "hello-world", | |||
type: "hello-world-with-assets", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me.
ac2ae06
to
47df992
Compare
47df992
to
4a88cc9
Compare
Fixes DEVX-1729