mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
docs: add a simple usage doc
This commit is contained in:
parent
943d50bb8d
commit
6a04840cba
43
README.md
43
README.md
@ -1,34 +1,25 @@
|
|||||||
|
# metacubexd
|
||||||
|
|
||||||
|
Clash-Meta Dashboard
|
||||||
|
|
||||||
|
![Alt text](docs/image.png)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
|
Install npm dependencies
|
||||||
|
|
||||||
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.
|
```shell
|
||||||
|
pnpm install
|
||||||
```bash
|
|
||||||
$ npm install # or pnpm install or yarn install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
|
Build artifacts
|
||||||
|
|
||||||
## Available Scripts
|
```shell
|
||||||
|
pnpm build
|
||||||
|
```
|
||||||
|
|
||||||
In the project directory, you can run:
|
Serve static files
|
||||||
|
|
||||||
### `npm run dev` or `npm start`
|
```shell
|
||||||
|
pnpm preview
|
||||||
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`
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
The build is minified and the filenames include the hashes.<br>
|
|
||||||
Your app is ready to be deployed!
|
|
||||||
|
|
||||||
## Deployment
|
|
||||||
|
|
||||||
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
|
|
||||||
|
BIN
docs/image.png
Normal file
BIN
docs/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "metacubexd",
|
"name": "metacubexd",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "clash-meta dashboard with daemon built in",
|
"description": "Clash-Meta Dashboard",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"serve": "vite preview",
|
"serve": "vite preview"
|
||||||
"start": "vite"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@felte/solid": "^1.2.10",
|
"@felte/solid": "^1.2.10",
|
||||||
|
Loading…
Reference in New Issue
Block a user