A bundle for Batect that provides a development container for Node.js, with sensible default configuration.
Add the following to your batect.yml:
include:
- type: git
repo: https://github.com/batect/node-bundle.git
ref: XXX # Replace with latest version from https://github.com/batect/node-bundle/releasesA container (based on the official Node.js images) with sensible defaults for use with Node.js.
It mounts the project directory into the container, enables run as current user mode and configures a cache for dependencies downloaded by NPM or Yarn.
tasks:
build:
description: Start the application
group: Test tasks
run:
container: node-build-env
command: yarn start
include:
- type: git
repo: https://github.com/batect/node-bundle.git
ref: XXX # Replace with latest version from https://github.com/batect/node-bundle/releases
The TypeScript sample project also demonstrates how to use this bundle.
Run ./batect --list-tasks to see a list of available tasks for this project.