Skip to content

Commit

Permalink
Merge pull request #18 from niftylettuce/master
Browse files Browse the repository at this point in the history
fix: set default to v12x, added v13, v14, and v15 (closes #17, closes #16)
  • Loading branch information
tersmitten authored Aug 17, 2020
2 parents c0bc437 + 97d4602 commit 7c0aff1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ Set up the latest version of [Node.js](https://nodejs.org) and [npm](https://www

#### Variables

* `nodejs_version` [default: `nodejs-v10x`]: Version to install (e.g. `nodejs-v12x`, `nodejs-v10x`, `nodejs-v8x`, `nodejs-v7x`, `nodejs-v6x`, `nodejs-v5x`, `nodejs-v012`, `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`)

* `nodejs_version` [default: `nodejs-v12x`]: Version to install (e.g. `nodejs-v15x`, `nodejs-v14x`, `nodejs-v13x`, `nodejs-v12x`, `nodejs-v10x`, `nodejs-v8x`, `nodejs-v7x`, `nodejs-v6x`, `nodejs-v5x`, `nodejs-v012`, `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`, or a specific version, e.g. `12.18.1`)
* `nodejs_install` [default: `[build-essential]`]: Packages to install

* `nodejs_npm_packages`: [default: `[]`]: Node.js packages to install (globally)
* `nodejs_npm_packages.{n}.name`: [required]: The name of the package
* `nodejs_npm_packages.{n}.version`: [optional]: The version of the package
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# defaults file for nodejs
---
nodejs_version: 'nodejs-v10x'
nodejs_version: 'nodejs-v12x'

nodejs_install:
# To compile and install native addons from npm you may also need to install build tools
Expand Down
3 changes: 3 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# vars file for nodejs
---
nodejs_version_map:
nodejs-v15x: '15.x'
nodejs-v14x: '14.x'
nodejs-v13x: '13.x'
nodejs-v12x: '12.x'
nodejs-v10x: '10.x'
nodejs-v9x: '9.x'
Expand Down

0 comments on commit 7c0aff1

Please sign in to comment.