opencode/app/packages/web/README.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2025-05-24 03:57:33 +08:00
## Usage
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
2025-05-24 02:17:45 +08:00
```bash
2025-05-24 03:57:33 +08:00
$ npm install # or pnpm install or yarn install
2025-05-24 02:17:45 +08:00
```
2025-05-24 03:57:33 +08:00
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
## Available Scripts
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
In the project directory, you can run:
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
### `npm run dev` or `npm start`
Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br>
### `npm run build`
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
Builds the app for production to the `dist` folder.<br>
It correctly bundles Solid in production mode and optimizes the build for the best performance.
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
## Deployment
2025-05-24 02:17:45 +08:00
2025-05-24 03:57:33 +08:00
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)