Update build pipeline to reduce image size
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }: {
|
||||
languages = {
|
||||
javascript = {
|
||||
enable = true;
|
||||
package = pkgs.nodejs_22;
|
||||
yarn = {
|
||||
enable = true;
|
||||
package = pkgs.yarn-berry;
|
||||
};
|
||||
};
|
||||
};
|
||||
tasks."news:install" = {
|
||||
exec = ''yarn install'';
|
||||
before = ["news:build"];
|
||||
};
|
||||
tasks."news:build" = {
|
||||
exec = ''yarn build'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user