Skip to content

Commit

Permalink
Update moon build for client
Browse files Browse the repository at this point in the history
  • Loading branch information
dangvanthanh committed Oct 1, 2023
1 parent 066b30a commit d6d62bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions apps/client/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"license": "MIT",
"engines": {
"node": "18.18.0"
}
},
"packageManager": ""
}

0 comments on commit d6d62bc

Please sign in to comment.