https://github.com/barelyhuman/prev-nitro
Tiny Island Boilerplate for Preact Islands and Nitro
https://github.com/barelyhuman/prev-nitro
Last synced: 8 months ago
JSON representation
Tiny Island Boilerplate for Preact Islands and Nitro
- Host: GitHub
- URL: https://github.com/barelyhuman/prev-nitro
- Owner: barelyhuman
- License: mit
- Created: 2023-06-13T17:24:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T05:15:10.000Z (over 1 year ago)
- Last Synced: 2025-04-15T02:13:10.218Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 237 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prev-nitro
This is a tiny boilerplate that adds support for preact-islands into [unjs/nitro](https://nitro.unjs.io).
So you get the amazing DX from nitro and h3 to be able to deploy anywhere and you get preact islands for when you wish to add interactivity.
## Usage
- Clone this template using Github or using degit
```sh
npx degit barelyhuman/prev-nitro
```
Replace `` with the name of your project.
- Install Dependencies
```sh
npm i # delete the `yarn.lock` file in using this command
# or
yarn i
```
- Run in Dev Mode
```sh
npm run dev
# or
yarn dev
```
- Build for production usage
```sh
npm run build
# or
yarn build
```
# Docs
You can go through the [nitro documentation](https://nitro.unjs.io) to understand how to work with nitro.
## License
reaper Open License for both OSS and Commercial.
The source is provided as is and licenses of other dependecies used by the source are still viable. Please read them carefully.