mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui-components.git
synced 2026-01-08 00:13:09 +00:00
Change build instructions
This commit is contained in:
parent
d24b7ba636
commit
3640027d2b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules
|
||||
storybook-static
|
||||
14
README.md
14
README.md
@ -26,3 +26,17 @@ npm install
|
||||
```
|
||||
npm run storybook
|
||||
```
|
||||
|
||||
## Build (for deployment)
|
||||
|
||||
```
|
||||
npm run build-storybook
|
||||
```
|
||||
|
||||
The files are generated under the folder storybook-static.
|
||||
|
||||
You can preview by using the command:
|
||||
|
||||
```
|
||||
npm run preview
|
||||
```
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview",
|
||||
"preview": "npx http-server ./storybook-static",
|
||||
"format": "prettier --write ./src",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
|
||||
0
.vite-env.d.ts → vite-env.d.ts
vendored
0
.vite-env.d.ts → vite-env.d.ts
vendored
8
vite.config.ts
Normal file
8
vite.config.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
worker: {
|
||||
format: "es",
|
||||
},
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user