npm i babel-eslint --save-dev
{
"parser": "babel-eslint",
"ecmaFeatures": {
"modules": true,
find . -name "node_modules" -exec rm -rf '{}' + |
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch FOLDERNAME" -- --all | |
Replace FOLDERNAME with the file or folder you wish to remove from the given git repository. | |
Once this is done run the following commands to clean up the local repository | |
rm -rf .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
git gc --aggressive --prune=now |
# Deployment | |
# ---------- | |
echo Handling node.js grunt deployment. | |
# 1. Select node version | |
selectNodeVersion | |
# 2. Install npm packages | |
if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then |
npm install -g rimraf | |
rimraf <dir> |
npm config set proxy <your proxy server address:port> | |
npm config set https-proxy <your proxy server address:port> | |
npm config set registry=http://registry.npmjs.org/ | |
git config --global url."https://".insteadOf git:// | |
set http_proxy=<your proxy server address:port> | |
set https_proxy=<your proxy server address:port> | |
or create .bowerrc |