Skip to content

Commit

Permalink
Passing git flag through to nuxi
Browse files Browse the repository at this point in the history
  • Loading branch information
jculvey committed Sep 29, 2023
1 parent e01f1f4 commit 7ab7cec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ runs:
node-version: ${{ env.node-version }}
cache: "pnpm"

- name: Install Bun ${{ env.bun-version }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.bun-version }}
cache: "pnpm"

- name: Install NPM Dependencies
shell: bash
run: pnpm install --frozen-lockfile
11 changes: 11 additions & 0 deletions .github/workflows/test-c3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
node-version: 18.17.1
bun-version: 1.0.3

jobs:
check:
Expand Down Expand Up @@ -73,6 +74,11 @@ jobs:
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Install Bun ${{ env.bun-version }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.bun-version }}

- name: E2E Tests
run: pnpm run --filter create-cloudflare test:e2e:${{matrix.pm}}
env:
Expand Down Expand Up @@ -147,6 +153,11 @@ jobs:
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Install Bun ${{ env.bun-version }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.bun-version }}

- name: E2E Tests
run: pnpm run --filter create-cloudflare test:e2e:${{matrix.pm}}
env:
Expand Down
3 changes: 2 additions & 1 deletion packages/create-cloudflare/src/frameworks/nuxt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const { npm, dlx } = detectPackageManager();

const generate = async (ctx: PagesGeneratorContext) => {
const cli = getFrameworkCli(ctx);
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;

await runFrameworkGenerator(
ctx,
`${dlx} ${cli} init ${ctx.project.name} --packageManager ${npm}`
`${dlx} ${cli} init ${ctx.project.name} --packageManager ${npm} ${gitFlag}`
);

logRaw(""); // newline
Expand Down

0 comments on commit 7ab7cec

Please sign in to comment.