Skip to content

Commit

Permalink
chore: simplify dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Oct 31, 2024
1 parent 3032442 commit 80c5579
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ After you've installed the required software, follow these steps:
1. Clone this repository via `git clone https://github.com/simonwep/ocular`.
2. Run `pnpm install` in the root directory.
3. Copy the `.env.example` to `.env`, you can leave the default values.
4. Start the backend with `pnpm run genesis`.
5. Start the frontend with `pnpm run dev`.
6. Open `http://localhost:3000` in your browser.
4. Start both the back- and frontend with `pnpm dev`.
5. Open `http://localhost:3000` in your browser.

You're now ready to start developing 🚀

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
"type": "module",
"version": "0.0.0",
"license": "MIT",
"author": "Simon Reinisch <trash@reinisch.io>",
"author": "Simon Reinisch <contact@reinisch.io>",
"packageManager": "[email protected]",
"engines": {
"node": "^22"
},
"scripts": {
"dev": "vite --host",
"dev": "pnpm run \"/^dev:.+/\"",
"dev:frontend": "vite --host",
"dev:backend": "docker run --pull always -p 8080:8080 -v \"$(pwd)/.data:/app/.data\" --env-file .env.genesis ghcr.io/simonwep/genesis:latest start",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"lint": "eslint 'src/**/*.{js,ts,vue}' --cache",
"lint:fix": "pnpm run lint --fix",
"test:ci": "pnpm run lint:fix && pnpm run build",
"genesis": "docker run --pull always -p 8080:8080 -v \"$(pwd)/.data:/app/.data\" --env-file .env.genesis ghcr.io/simonwep/genesis:latest start"
"test:ci": "pnpm run lint:fix && pnpm run build"
},
"dependencies": {
"@popperjs/core": "2.11.8",
Expand Down

0 comments on commit 80c5579

Please sign in to comment.