Skip to content

Step to install Node.js & NPM in a Wercker pipeline

License

Notifications You must be signed in to change notification settings

pasonatquila/wercker-step-install-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step install-node

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.

wercker status

Options

  • version The version number of the Node.js package to install. By devault the value 6.9.4 is used for this option.

Examples

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

Development

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

License

The MIT License (MIT)

Changelog

2.1.1

  • Fixed an error in an example.

2.1.0

  • Updated the source download command to allow curl and wget

2.0.3

  • Corrected the version environment variable

2.0.2

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

2.0.1

  • Corrected some little errors on run.sh script

NOTE: This version should nor be used due to an error on run.sh script.

About

Step to install Node.js & NPM in a Wercker pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages