breaking(v2): required nodejs version >=8.9 -> >=8.10 so we can use es2017 (#2045)

This commit is contained in:
Endi 2019-11-25 12:40:57 +07:00 committed by Yangshun Tay
parent 3abd2814b8
commit 421f862701
11 changed files with 14 additions and 11 deletions

View file

@ -29,6 +29,6 @@
"shelljs": "^0.8.3" "shelljs": "^0.8.3"
}, },
"engines": { "engines": {
"node": ">= 8.9.0" "node": ">= 8.10.0"
} }
} }

View file

@ -28,6 +28,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -32,6 +32,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -21,6 +21,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -23,6 +23,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -21,6 +21,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -17,6 +17,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">= 8.10.0"
} }
} }

View file

@ -16,5 +16,8 @@
"fs-extra": "^8.1.0", "fs-extra": "^8.1.0",
"gray-matter": "^4.0.2", "gray-matter": "^4.0.2",
"lodash": "^4.17.15" "lodash": "^4.17.15"
},
"engines": {
"node": ">= 8.10.0"
} }
} }

View file

@ -89,6 +89,6 @@
"react-dom": "^16.8.4" "react-dom": "^16.8.4"
}, },
"engines": { "engines": {
"node": ">= 8.9.0" "node": ">= 8.10.0"
} }
} }

View file

@ -1,8 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"lib": ["es6"], "lib": ["es2017"],
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,

View file

@ -7,7 +7,7 @@ Docusaurus is essentially a set of npm [packages](https://github.com/facebook/do
## Requirements ## Requirements
- [Node.js](https://nodejs.org/en/download/) version >= 8.9 or above (which can be checked by running `node -v`). You can use [nvm](https://github.com/nvm-sh/nvm) for managing multiple Node versions on a single machine installed - [Node.js](https://nodejs.org/en/download/) version >= 8.10.0 or above (which can be checked by running `node -v`). You can use [nvm](https://github.com/nvm-sh/nvm) for managing multiple Node versions on a single machine installed
- [Yarn](https://yarnpkg.com/en/) version >= 1.5 (which can be checked by running `yarn version`). Yarn is a performant package manager for JavaScript and replaces the `npm` client. It is not strictly necessary but highly encouraged. - [Yarn](https://yarnpkg.com/en/) version >= 1.5 (which can be checked by running `yarn version`). Yarn is a performant package manager for JavaScript and replaces the `npm` client. It is not strictly necessary but highly encouraged.
## Scaffold project website ## Scaffold project website