build.sh

build.sh

🔨 run and visualize the build process.

build.sh is one of those unquie node module which likes to take an atypical route in solving problems, this module helps in running and visualize the build process, makes use of build.yml at the root of your project for the build pipleline meta-data.

Get it: npm install -g build.sh

Sample usage:

1
2
3
4
5
6
7
8
9
$ build [options]


Options:

  -V, --version        output the version number
  -c, --config [file]  the input file for the build pipeline to run
  -d, --debug          outputs a debug file of the build process and data captured
  -h, --help           output usage information

To invoke about the pipeline simply run build at the project root. The terminal output will show the pipeline being run and eventually will open the browser to the location of the final report.

1
2
3
4
5
6
# cat .build.yml

pipeline:
  {key}:
    - {command}
    - {command}

Sample .build.yml:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
output: ./docs
pipeline:
  install:
    - npm --version
    - node --version
    - npm:
      - npm install
      - ls -lh node_modules
  lint:
    - npm run lint
  coverage:
    - npm run coverage
  test:
    - npm test
  docs:
    - npm run generate-docs

GIF FTW!

build.sh

Suggest a module

Comments