Skip to content

Commit

Permalink
fix: move wrangler out of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 24, 2024
1 parent 24d71a7 commit 57ed91a
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 178 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,19 @@ Read more on https://docs.hub.nuxt.com

## Quick Setup

1. Add `@nuxthub/core` dependency to your project
1. Install `@nuxthub/core` dependency to your project:

```bash
# Using pnpm
pnpm add @nuxthub/core

# Using yarn
yarn add @nuxthub/core
npx nypm@latest add @nuxthub/core
```

# Using npm
npm install @nuxthub/core
2. Install `wrangler` development dependency to your project:

# Using bun
npm add @nuxthub/core
```bash
npx nypm@latest add -D wrangler
```

2. Add `@nuxthub/core` to the `modules` section of `nuxt.config.ts`
3. Add `@nuxthub/core` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
Expand Down
24 changes: 23 additions & 1 deletion docs/content/1.getting-started/2.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,29 @@ bun add @nuxthub/core

::

2. Add it to your `modules` section in your `nuxt.config`:
2. Install `wrangler` development dependency to your project:

::code-group

```bash [pnpm]
pnpm add -D wrangler
```

```bash [yarn]
yarn add --dev wrangler
```

```bash [npm]
npm install --save-dev @nuxthub/core
```

```bash [bun]
bun add --dev @nuxthub/core
```

::

3. Add it to your `modules` section in your `nuxt.config`:

```ts [nuxt.config.ts]
export default defineNuxtConfig({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"ufo": "^1.4.0",
"uncrypto": "^0.1.3",
"unstorage": "^1.10.1",
"wrangler": "^3.29.0",
"zod": "^3.22.4"
},
"devDependencies": {
Expand All @@ -65,6 +64,7 @@
"nuxt": "^3.10.3",
"typescript": "^5.3.3",
"vitest": "^1.3.1",
"vue-tsc": "^1.8.27"
"vue-tsc": "^1.8.27",
"wrangler": "^3.29.0"
}
}
}
Loading

0 comments on commit 57ed91a

Please sign in to comment.