Skip to content

Commit

Permalink
chore: optimise docs site local build
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
  • Loading branch information
castarco committed Mar 31, 2024
1 parent 048092a commit 27e1b5d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 0 additions & 2 deletions @kindspells/astro-shield/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ tasks:
- 'vitest.config.e2e.mts'
- 'src/**/*'
- 'e2e/**/*'
local: true
options:
runInCI: false
test.unit:
Expand All @@ -47,7 +46,6 @@ tasks:
- 'vitest.config.unit.mts'
- 'src/**/*'
- 'tests/**/*'
local: true
options:
runInCI: false
test.unit.cov:
Expand Down
26 changes: 20 additions & 6 deletions docs/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,36 @@ tasks:
- 'package.json'
- 'sst.config.ts'
outputs:
- '.sst/**/*'
local: true
- '.sst/.pulumi/meta.yaml'
- '.sst/platform/version'
- '.sst/stage'
- '.sst/types.generated.ts'
options:
runInCI: false
build:
command: 'astro check && astro build'
astro.check:
command: 'astro check'
deps:
- '~:sst.install'
inputs:
- '.sst/types.generated.ts'
- 'public/**/*'
- 'src/**/*'
- 'astro.config.mjs'
- 'package.json'
outputs:
- '.astro/types.d.ts'
options:
runInCI: false
build:
command: 'astro build'
deps:
- '~:astro.check'
inputs:
- 'public/**/*'
- 'src/**/*'
- 'astro.config.mjs'
- 'package.json'
outputs:
- '.astro/**/*'
- 'dist/**/*'
local: true
options:
runInCI: false
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "sst dev astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"build": "moon run build",
"preview": "astro preview",
"astro": "astro"
},
Expand Down

0 comments on commit 27e1b5d

Please sign in to comment.