Skip to content

Instantly share code, notes, and snippets.

@GlinZachariah
Created October 3, 2021 15:56
Show Gist options
  • Save GlinZachariah/42197572fedb7b180e77add4b21d4831 to your computer and use it in GitHub Desktop.
Save GlinZachariah/42197572fedb7b180e77add4b21d4831 to your computer and use it in GitHub Desktop.
@echo off
set /p nm="Add dependencies for system or project :"
if %nm% EQU system (
echo "Installing system dependencies ..once complete please install project dependencies manually "
echo "Installing gulp..."
npm install -g gulp-cli
echo "Installing sass.."
npm install sass
echo "Installing json..."
npm install -g json
echo "Installing mocha..."
npm install -g mocha
) ELSE (
echo "Installing project dependencies"
npm install --save-dev ^del gulp-sass gulp-htmlmin gulp-cssmin gulp-babel @babel/core @babel/preset-env gulp-uglify gulp-autoprefixer gulp-mocha gulp-plumber browser-sync
npm audit fix
curl https://gist.githubusercontent.com/GlinZachariah/2b7fe25ddde08f42007fa06f5ac62c3f/raw/c6734f6d32a6dbacca7ed2a8a03962107d35c6a3/gulpfile.js --output gulpfile.js
echo"updating package.json.."
timeout 5 > NUL
json -I -f package.json -e "this.scripts={'build':'gulp build','watch':'gulp watch','test':'gulp test'}"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment