diff --git a/.gitignore b/.gitignore index e2b00b1a..73e99fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,5 @@ /.direnv/ -/node_modules/ +/assets/node_modules/ /source/build/ diff --git a/package.json b/assets/package.json similarity index 100% rename from package.json rename to assets/package.json diff --git a/pnpm-lock.yaml b/assets/pnpm-lock.yaml similarity index 100% rename from pnpm-lock.yaml rename to assets/pnpm-lock.yaml diff --git a/assets/tailwind.config.ts b/assets/tailwind.config.ts index 02b9d8af..0b17b0d7 100644 --- a/assets/tailwind.config.ts +++ b/assets/tailwind.config.ts @@ -5,8 +5,8 @@ import typographyPlugin from "@tailwindcss/typography"; export default { content: [ - "./app/config/**/*.yml", - "./source/**/*.{md,twig}", + "../app/config/**/*.yml", + "../source/**/*.{md,twig}", ], theme: { colors: { diff --git a/build.yaml b/build.yaml index 33fc8f31..461cc3f9 100644 --- a/build.yaml +++ b/build.yaml @@ -12,5 +12,5 @@ flake: git: ignore: + - '/assets/node_modules/' - '/source/build/' - - '/node_modules/' diff --git a/run.local b/run.local index 6210c925..708115bd 100755 --- a/run.local +++ b/run.local @@ -58,9 +58,11 @@ function npm:build:css { args=(--watch) fi - npx tailwindcss \ - --config assets/tailwind.config.ts \ - --output source/build/tailwind.css "${args[@]}" + cd assets || exit + + tailwindcss \ + --config tailwind.config.ts \ + --output ../source/build/tailwind.css "${args[@]}" } function publish {