Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
Last active March 18, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cobaltapps/0618a042fbadd7ed83fdae51c19834b9 to your computer and use it in GitHub Desktop.
Save cobaltapps/0618a042fbadd7ed83fdae51c19834b9 to your computer and use it in GitHub Desktop.
Script used on a theme by theme bases to setup the Node/Gulp environment, after the initial "first-time" setup script has been run.
#!/bin/sh
## Once the "gulp-first-time-setup" script has been run (see gulp-readme.md) you should run THIS version from that point on
## Copy/paste this line into the Console to make this script executable: chmod +x gulp-setup.sh
## Copy/paste this line into the Console to execute this script: ./gulp-setup.sh
## Initialize NPM
npm init --yes
## Install Gulp and the rest of the dependencies locally
npm install --save-dev gulp @babel/register @babel/preset-env @babel/core yargs gulp-sass gulp-clean-css gulp-if gulp-sourcemaps gulp-postcss autoprefixer gulp-imagemin del webpack-stream babel-loader vinyl-named gulp-zip gulp-wp-pot
## Delete this script when finished running commands
sudo rm gulp-setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment