- nodejs >= v14.7.0
- npm >= v6.14.7
- yarn >= v1.19.1
$ git clone https://git_url_clone <project_dir>
$ cd <project_dir>
$ yarn install
$ yarn start
file: pakage.json
scripts:{
"clean": "rd -rf build && mkdir build",
}
- In Windows you should use
rd /s /q dist
- rm is available in Linux and Mac.
So, How to run rm command on windows 10?
OR
scripts:{
"remove-build": "rmdir /s /q build",
"create-build": "mkdir build",
"clean": "npm run remove-build && npm run create-build",
}
file: .env
-
doesn't work with .env files
-
Create a
.env
file :
// code environment variables here
//examples
PORT=3000
-
Cloning out 1 array or 1 object is good but can't create a deep copy of the value i.e. it recursively clones the value
-
Example:
const cloneCard = [...card];
-
Solution: using Lodash
-
import {cloneDeep} from 'lodash'
-
Object inheritance is preserved.
- module : babel-plugin-module-resolver doesn't work, so hope i will fix soon!
** Coming soon !! **