From d6d62bc3eaa8ff9be1ea61663f2a300cb3f33f02 Mon Sep 17 00:00:00 2001 From: Dang Van Thanh Date: Mon, 2 Oct 2023 01:54:09 +0700 Subject: [PATCH] Update moon build for client --- .github/workflows/deploy.yml | 4 ++-- apps/client/moon.yml | 13 +++++++++++++ package.json | 3 ++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06d236e..2b04480 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,11 +29,11 @@ jobs: node-version: lts/* - name: Build step - run: "npm install && npm run build" # 📝 Update the build command(s) if necessary + run: "moon install && moon run client:build" # 📝 Update the build command(s) if necessary - name: Upload to Deno Deploy uses: denoland/deployctl@v1 with: - project: "dry-rabbit-10" + project: "vue-shopping-cart" entrypoint: "index.js" # 📝 Update the entrypoint if necessary root: "." # 📝 Update the root if necessary diff --git a/apps/client/moon.yml b/apps/client/moon.yml index 2368bbc..412ad8e 100644 --- a/apps/client/moon.yml +++ b/apps/client/moon.yml @@ -2,7 +2,20 @@ type: 'application' language: 'typescript' +fileGroups: + app: + - 'env.d.ts' + - 'index.html' + - 'vite.config.*' + tasks: dev: command: 'vite dev' local: true + + build: + command: 'vite build' + inputs: + - '@group(app)' + outputs: + - 'dist' diff --git a/package.json b/package.json index 961256b..fa55d7d 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,6 @@ "license": "MIT", "engines": { "node": "18.18.0" - } + }, + "packageManager": "" }