mirror of
https://github.com/sajenim/javascript-template.git
synced 2025-12-16 19:40:39 +08:00
Features: - Nix + Flakes for reproducible environments - Bun (fast JavaScript runtime) - Vite (development server & build tool) - ESLint + Prettier (linting & formatting) - Devshell commands via just - Modular structure using flake-parts - Omnix template support for initialization
19 lines
446 B
Nix
19 lines
446 B
Nix
{inputs, ...}: {
|
|
flake = rec {
|
|
templates.default = {
|
|
description = "A minimal JavaScript project template with Bun and Nix";
|
|
path = inputs.self;
|
|
};
|
|
|
|
om.templates.javascript-template = {
|
|
template = templates.default;
|
|
params = [
|
|
{
|
|
name = "package-name";
|
|
description = "Name of the JavaScript package";
|
|
placeholder = "javascript-template";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|