Last active
March 18, 2019 15:36
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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