Skip to content

Commit

Permalink
Generate profiles to public
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Oct 22, 2024
1 parent 17e5c9b commit f1a574f
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ const root = execa({ preferLocal: true, stdout: ["inherit"] })

// Build website

await root`npx astro build`

// Copy profiles

await root`cp -r profiles/target build/profiles`
await root`astro build`
4 changes: 2 additions & 2 deletions generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import nodePath from "path"
import process from "process"
import { replaceInFile } from "replace-in-file"

const SOURCE_DIR = "profiles/source"
const TARGET_DIR = `profiles/target`
const SOURCE_DIR = "profiles"
const TARGET_DIR = `public/profiles`
const VERSION_DIR = `${TARGET_DIR}/${version}`
const EXCLUDE_FILES = ["dictionary.json"]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f1a574f

Please sign in to comment.