Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/usr/bin/env bash
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
watch_file ./*
watch_file ./nix/*.nix
watch_file ./nix/**/*.nix
Expand Down
31 changes: 13 additions & 18 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ tasks:
run: "once"
deps:
- init:lefthooks
- init:npm
- init:build-tokens
# - init:build-tokens # BUG: fix build-token task
init:lefthooks:
silent: true
internal: true
Expand All @@ -24,8 +23,6 @@ tasks:
silent: true
internal: true
run: "once"
deps:
- init:npm
cmds:
- npm run build-tokens
sources:
Expand All @@ -34,15 +31,6 @@ tasks:
- ./config.js
- ./svelte.config.js
- ./tokens/**/*
init:npm:
silent: true
internal: true
run: "once"
cmds:
- npm install
sources:
- ./package-lock.json
- ./package.json
format:
silent: true
desc: 📝 Format project files
Expand All @@ -55,7 +43,6 @@ tasks:
run: "once"
deps:
- init:build-tokens
- init:npm
cmds:
- npm run build-storybook
build:
Expand All @@ -64,7 +51,6 @@ tasks:
run: "once"
deps:
- init:build-tokens
- init:npm
cmds:
- npm run build
check:npm:
Expand All @@ -73,7 +59,6 @@ tasks:
internal: true
deps:
- init:build-tokens
- init:npm
cmds:
- npm run check
check:test:
Expand All @@ -82,7 +67,6 @@ tasks:
run: "once"
deps:
- init:build-tokens
- init:npm
cmds:
- npm run test
check:tailwind:
Expand All @@ -91,7 +75,6 @@ tasks:
run: "once"
deps:
- init:build-tokens
- init:npm
cmds:
- npm run build-tailwind
check:
Expand All @@ -103,3 +86,15 @@ tasks:
- check:test
- lint
- check:tailwind
watch:storybook:
desc: 💻 Run storybook local server to develop components
silent: true
run: "once"
cmds:
- npm run storybook
watch:svelte:
desc: 🐚 Run svelte local server and tests to develop website
silent: true
run: "once"
cmds:
- npm run check:watch
3 changes: 3 additions & 0 deletions nix/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
++ config.buildPackages
++ config.checkPackages;
shellHook = ''
set -x
source ${pkgs.importNpmLock.linkNodeModulesHook}/nix-support/setup-hook
set +x
${pkgs.go-task}/bin/task --verbose --output prefixed
printf "You can run project tasks using cli:\n task\n\n"
${pkgs.go-task}/bin/task --list
Expand Down