Some utilities require Node.js or NPM to perform some development or build tasks. The main purpose of this steps install Node.js and NPM in the running pipeline container to provide the utilities needed for development and build tasks on frontend applications such as stylesheet compilation, javascript minification, and so.
NOTE: the wget
or the curl
commands should be available to sucessfully install the node version.
version
The version number of the Node.js package to install. By devault the value6.9.4
is used for this option.
The following example installs default configured version fo the node package. Currently the version 6.9.4
:
build:
steps:
- bigtruedata/install-node:
The following example installs the 7.4.0
version of the node package:
build:
steps:
- bigtruedata/install-node:
version: 7.4.0
During step development some environment variables are used. They are defined in a file called wercker.env
. To make them available during the development pipeline, the wercker
command should be executed with the --environment <file>
option as follows:
$ wercker --environment wercker.env dev
The MIT License (MIT)
- Fixed an error in an example.
- Updated the source download command to allow
curl
andwget
- Corrected the version environment variable
- Some minor modifications on
run.sh
to simplify the script
NOTE: This version should nor be used due to an error on run.sh
script.
- Corrected some little errors on
run.sh
script
NOTE: This version should nor be used due to an error on run.sh
script.