Skip to content

Commit

Permalink
Merge pull request #61 from WordPress/update/node-version
Browse files Browse the repository at this point in the history
Enforce using the latest LTS version (8.x) of Node and up
  • Loading branch information
gziolo authored Jan 9, 2018
2 parents e779e55 + 75251a4 commit f88a46b
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sudo: false
language: node_js
node_js:
- '8'
- '6'

script:
- npm run test:coverage-ci
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can pick among all the <a href="https://github.com/WordPress/packages/issues

## Developing

Packages is built for Node 6 and up. You can check this with `node -v`.
Be sure to have [Node.js](https://nodejs.org/en/) installed first. You should be running a Node.js version matching the [current active LTS release](https://github.com/nodejs/Release#release-schedule) or newer. You can check this with `node -v`.

Make sure that npm is installed with version >= `5.0.0` using `npm -v`.

Expand Down
88 changes: 88 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=8.0.0",
"npm": ">=5.0.0"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.5.2",
"chalk": "^2.0.1",
"check-node-version": "^3.1.1",
"codecov": "^2.2.0",
"glob": "^7.1.2",
"jest": "^22.0.3",
Expand All @@ -24,6 +29,7 @@
},
"scripts": {
"build-clean": "rimraf ./packages/*/build ./packages/*/build-module",
"prebuild": "check-node-version --package",
"build": "node ./scripts/build.js",
"postinstall": "lerna bootstrap && npm run build",
"test": "jest",
Expand Down

0 comments on commit f88a46b

Please sign in to comment.