Support Node.js 10 and above (Update node-sass and lint-staged) #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
npm install
succeeds with Node.js 8.x. But, its support has already ended.This PR allows
npm install
with Node.js 10.x, 12.x, and 14.x.Why update node-sass?
Please see, https://www.npmjs.com/package/node-sass
We are using node-sass v4.7.2, so the following error appears when
npm install
with Node.js 10 and above.Why update lint-staged?
lint-staged says "lint-staged requires at least version 6 of Node, please upgrade" and we cannot commit while using Node.js 10 and above. This is a bug and it fixed on v7.0.5. ( lint-staged/lint-staged#434 )
Types of changes
Checklist:
I checked passing
npm install
with Node.js v10.22.1, v12.18.4, and v14.11.0 using Docker.(The error causing from
node-gyp
still appears, but it's ok.node-gyp
is a dependency ofiltorb
andiltorb
is an optionalDependencies ofgrunt-contrib-compress
.)After that, I tried
npm run dev
,npm run test
,npx grunt release --oldver=1.0.0 --newver=1.0.1
, and these work well.