bootstrap/specs/nodejs/template
Joshua Potter 635395b9cc Discourage dev dependencies in package.json. 2023-12-03 19:44:15 -07:00
..
.githooks Guard on more exotic filenames. 2023-12-03 14:28:55 -07:00
src Add spec for nodejs packages. 2023-12-01 15:53:50 -07:00
.envrc Add spec for nodejs packages. 2023-12-01 15:53:50 -07:00
.gitignore Add spec for nodejs packages. 2023-12-01 15:53:50 -07:00
README.md Add spec for nodejs packages. 2023-12-01 15:53:50 -07:00
flake.lock Add spec for nodejs packages. 2023-12-01 15:53:50 -07:00
flake.nix Discourage dev dependencies in package.json. 2023-12-03 19:44:15 -07:00
package-lock.json Discourage dev dependencies in package.json. 2023-12-03 19:44:15 -07:00
package.json Discourage dev dependencies in package.json. 2023-12-03 19:44:15 -07:00
prettier.config.cjs Add default prettier configuration. 2023-12-03 11:20:21 -07:00
tsconfig.json Default to es2016. 2023-12-01 17:55:27 -07:00

README.md

NodeJS Flake Template

This is a template for constructing a working environment for Node.js development (version v18.18.2) with the npm (version 9.8.1) packaging tool. direnv can be used to launch a dev shell upon entering this directory (refer to .envrc). Otherwise run via:

$ nix develop

Language Server

The typescript-language-server (version 4.1.2) is included in this flake.

Formatting

Formatting depends on prettier (version 3.1.0). A pre-commit hook is included in .githooks that can be used to format all *.jsx? and *.tsx? files prior to commit. Install via:

$ git config --local core.hooksPath .githooks/

If running direnv, this hook is installed automatically when entering the directory.