build: renamed and rearranged npm scripts; added `dev:docs` script

pull/249/head
Sylvie 1 year ago
parent 5c5d20f6a3
commit 8f326d59b5
No known key found for this signature in database
GPG Key ID: 75AB0FE5B983A3AF

@ -8,16 +8,16 @@
"node": "^20" "node": "^20"
}, },
"scripts": { "scripts": {
"start": "node dist/backend/app.js",
"dev": "npm run build && npm start", "dev": "npm run build && npm start",
"fresh": "rm -dr .ass-data/ & npm run dev", "dev:docs": "wrangler pages dev --proxy 5173 -- npm run vp:dev",
"build": "rm -dr dist/ & npm run build:backend && npm run build:frontend && npm run build:fix-frontend", "build": "rm -dr dist/ ; npm run build:backend && npm run build:frontend && npm run build:fix-frontend",
"build:backend": "tsc -p backend/", "build:backend": "tsc -p backend/",
"build:frontend": "tsc -p frontend/", "build:frontend": "tsc -p frontend/",
"build:fix-frontend": "node common/fix-frontend-js.js", "build:fix-frontend": "node common/fix-frontend-js.js",
"start": "node dist/backend/app.js", "vp:dev": "vitepress dev docs",
"docs:dev": "vitepress dev docs", "vp:build": "vitepress build docs",
"docs:build": "vitepress build docs", "vp:preview": "vitepress preview docs"
"docs:preview": "vitepress preview docs"
}, },
"repository": "github:tycrek/ass", "repository": "github:tycrek/ass",
"keywords": [ "keywords": [

Loading…
Cancel
Save