From 4848e04df10d3b612b1d225990fede035e226e12 Mon Sep 17 00:00:00 2001 From: CameronEYDS <53542131+cameron-eyds@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:19:07 -0800 Subject: [PATCH] Build Script Update (#2088) * Dockerfile and PNPM updates * Updated Scripts to build dist * Workflow revert --- ppr-ui/README.md | 30 +++++++++++++++--------------- ppr-ui/firebase.json | 2 +- ppr-ui/package.json | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ppr-ui/README.md b/ppr-ui/README.md index 25b58212c..9ec179e1c 100644 --- a/ppr-ui/README.md +++ b/ppr-ui/README.md @@ -7,12 +7,12 @@ Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduct Make sure to install dependencies: ```bash -# npm -npm install - # pnpm pnpm install +# ppnpm +ppnpm install + # yarn yarn install @@ -25,11 +25,11 @@ bun install Start the development server on `http://localhost:3000`: ```bash -# npm -npm run dev - # pnpm -pnpm dev +pnpm run dev + +# ppnpm +ppnpm dev # yarn yarn dev @@ -43,11 +43,11 @@ bun run dev Build the application for production: ```bash -# npm -npm run build - # pnpm -pnpm build +pnpm run build + +# ppnpm +ppnpm build # yarn yarn build @@ -59,11 +59,11 @@ bun run build Locally preview production build: ```bash -# npm -npm run preview - # pnpm -pnpm preview +pnpm run preview + +# ppnpm +ppnpm preview # yarn yarn preview diff --git a/ppr-ui/firebase.json b/ppr-ui/firebase.json index b95740780..4acf21ef5 100644 --- a/ppr-ui/firebase.json +++ b/ppr-ui/firebase.json @@ -2,7 +2,7 @@ "hosting": { "site": "bcregistry-assets-dev", - "public": ".output", + "public": "dist", "ignore": ["**/devops/**", "**/.*", "**/node_modules/**"], "rewrites": [ { diff --git a/ppr-ui/package.json b/ppr-ui/package.json index c73ca22dc..86ec50638 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -6,7 +6,7 @@ "sbcName": "SBC Common Components", "type": "module", "scripts": { - "build": "nuxt build", + "build": "nuxt generate", "build-check": "nuxt build", "dev": "nuxt dev", "preview": "nuxt preview --port 3000",