Build tools: add `check-node-version` to check required Node.js and npm versions are installed.

Props netweb.
Fixes #44246.

git-svn-id: https://develop.svn.wordpress.org/trunk@43321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2018-05-27 16:07:48 +00:00
parent f26fe4ea9c
commit 338e951cec
2 changed files with 2062 additions and 1968 deletions

4026
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,7 @@
"license": "GPL-2.0-or-later",
"devDependencies": {
"autoprefixer": "^6.5.1",
"check-node-version": "3.2.0",
"grunt": "~0.4.5",
"grunt-banner": "^0.6.0",
"grunt-contrib-clean": "~1.0.0",
@ -54,5 +55,8 @@
"masonry-layout": "3.3.2",
"twemoji": "2.5.1",
"underscore": "1.8.3"
},
"scripts": {
"preinstall": "check-node-version --node '>= 8.9.3' --npm '>= 6.1.0'"
}
}