Add package.json for workspace setup and update frontend scripts to use Bun
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"ci-build:dist": "npm run build",
|
||||
"ci-build:dist": "bun run build",
|
||||
"dev": "vite",
|
||||
"prebuild": "npm run lint",
|
||||
"prebuild": "bun run lint",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint --fix .",
|
||||
|
||||
17
package.json
Normal file
17
package.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@albert-jeffers-studios/portfolio-site",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"ci-build:dist": "bun run build",
|
||||
"dev": "bun run dev",
|
||||
"start": "bun run start",
|
||||
"lint": "bun run lint",
|
||||
"lint:fix": "bun run lint:fix",
|
||||
"format": "bun run format"
|
||||
},
|
||||
"workspaces": [
|
||||
"frontend",
|
||||
"server"
|
||||
]
|
||||
}
|
||||
19
scripts/ci-build.sh
Executable file
19
scripts/ci-build.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
!#/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
echo "Removing [frontend/dist]"
|
||||
rm -rf frontend/dist
|
||||
|
||||
echo "Removing [server/dist]"
|
||||
rm -rf server/dist
|
||||
|
||||
cd frontend
|
||||
bun install
|
||||
bun run ci-build:dist
|
||||
|
||||
cd server
|
||||
bun install
|
||||
bun run ci-build:dist
|
||||
Reference in New Issue
Block a user