mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-05 21:17:37 +03:00
Merge pull request #9 from numtide/fix/install-docs-dependencies
fix: install node dependencies in devshell commands
This commit is contained in:
commit
39b73b8e7e
@ -35,19 +35,19 @@ _: {
|
|||||||
inherit category;
|
inherit category;
|
||||||
name = "docs:dev";
|
name = "docs:dev";
|
||||||
help = "serve docs for local development";
|
help = "serve docs for local development";
|
||||||
command = "cd $PRJ_ROOT/docs && npm run dev";
|
command = "cd $PRJ_ROOT/docs && npm ci && npm run dev";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
inherit category;
|
inherit category;
|
||||||
name = "docs:build";
|
name = "docs:build";
|
||||||
help = "create a production build of docs";
|
help = "create a production build of docs";
|
||||||
command = "cd $PRJ_ROOT/docs && npm run build";
|
command = "cd $PRJ_ROOT/docs && npm ci && npm run build";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
inherit category;
|
inherit category;
|
||||||
name = "docs:preview";
|
name = "docs:preview";
|
||||||
help = "preview a production build of docs";
|
help = "preview a production build of docs";
|
||||||
command = "cd $PRJ_ROOT/docs && npm run preview";
|
command = "cd $PRJ_ROOT/docs && npm ci && npm run preview";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
inherit category;
|
inherit category;
|
||||||
|
Loading…
Reference in New Issue
Block a user