Skip to content

Commit

Permalink
enable npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
valentecaio committed Aug 9, 2024
1 parent bc26278 commit 046b1cc
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
node_modules/

# Nuxt.js build / generate output
.nuxt
dist

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ To run this project locally, follow the steps outlined below.
3. Run the node server: `$ npm run dev`
4. Access the application at [localhost:5173](http://localhost:5173) in a browser.

---
### How to build
To build the project, follow the steps below.
1. Install Node.js from [nodejs.org](https://nodejs.org).
2. Install the dependencies: `$ npm install`
3. Run the build script: `$ npm run build`
4. The build will be available in the `dist/` folder.
5. Zip the contents of the `dist/` folder and upload it to a server.

---
### Some examples

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"host": "vite --host 0.0.0.0",
"build": "vite build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite';

export default defineConfig({
base: '/voroplan/',
base: './',
});

0 comments on commit 046b1cc

Please sign in to comment.