Skip to content

Commit

Permalink
feat: bun added
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Sep 6, 2024
1 parent f3efe43 commit eaacb97
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 3 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ Clone the repository and install dependencies:
```bash
git clone https://github.com/vwh/revite
cd revite

# Using Bun
bun install

# Or using npm
npm install
```

Expand All @@ -66,6 +71,10 @@ npm install
Start the development server:

```bash
# Using Bun
bun run dev

# Or using npm
npm run dev
```

Expand All @@ -74,6 +83,10 @@ npm run dev
Build the project for production:

```bash
# Using Bun
bun run build

# Or using npm
npm run build
```

Expand All @@ -82,6 +95,10 @@ npm run build
Preview the production build locally:

```bash
# Using Bun
bun run preview

# Or using npm
npm run preview
```

Expand All @@ -90,6 +107,10 @@ npm run preview
Lint the project files:

```bash
# Using Bun
bun run lint

# Or using npm
npm run lint
```

Expand All @@ -98,12 +119,20 @@ npm run lint
Format the project files:

```bash
# Using Bun
bun run format

# Or using npm
npm run format
```

Check the formatting:

```bash
# Using Bun
bun run format:check

# Or using npm
npm run format:check
```

Expand Down
Binary file added bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello via Bun!");
44 changes: 44 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
"vite": "^5.4.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-dynamic-import": "^1.5.0",
"vite-plugin-imagemin": "^0.6.1"
"vite-plugin-imagemin": "^0.6.1",
"@types/bun": "latest"
},
"packageManager": "[email protected]"
}
"packageManager": "[email protected]",
"module": "index.ts"
}

0 comments on commit eaacb97

Please sign in to comment.