Skip to content

batect/node-bundle

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.