Files
computer-playbook/roles/dev-npm
Kevin Veen-Birkenbach 2fccebbd1f Enforce uppercase README.md and TODO.md filenames
- Renamed all Readme.md → README.md
- Renamed all Todo.md → TODO.md
- Added integration test (tests/integration/test_filename_conventions.py) to automatically check naming convention.

Background:
Consistency in file naming (uppercase README.md and TODO.md) avoids issues with case-sensitive filesystems and ensures desktop cards (e.g. Pretix) are properly included.
Ref: https://chatgpt.com/share/68b1d135-c688-800f-9441-46a3cbfee175
2025-08-29 18:11:53 +02:00
..
2025-07-15 17:46:29 +02:00
2025-07-15 17:46:29 +02:00

npm

Description

This Ansible role installs npm and optionally runs npm ci within a given project directory. It is intended to streamline dependency installation for Node.js applications.

Overview

Designed for use in Node-based projects, this role installs npm and can execute a clean install (npm ci) to ensure consistent dependency trees.

Features

  • npm Installation: Ensures the npm package manager is installed.
  • Optional Project Setup: Runs npm ci in a specified folder to install exact versions from package-lock.json.
  • Idempotent: Skips npm ci if no folder is configured.

Configuration

Set npm_project_folder to a directory containing package.json and package-lock.json:

vars:
  npm_project_folder: /opt/scripts/my-node-project/

License

Infinito.Nexus NonCommercial License https://s.infinito.nexus/license

Author

Kevin Veen-Birkenbach Consulting & Coaching Solutions https://www.veen.world