Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
/ node-bundle Public archive

A bundle for Batect that provides a development container for Node.js, with sensible default configuration.

License

Notifications You must be signed in to change notification settings

batect/node-bundle

node-bundle

Build Status License

A bundle for Batect that provides a development container for Node.js, with sensible default configuration.

Usage

Setup

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/releases

Containers

node-build-env

A 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.

Example

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.

Development

Run ./batect --list-tasks to see a list of available tasks for this project.