You know how to make a new folder, right? Course you do ;)
// type "cd" then drag directory onto Terminal window
// example command
cd /Users/Soren/Desktop/my-gulp-project
// inside project root directory
touch index.html && mkdir css && cd $_ && touch main.scss && cd -
// inside project root directory
touch package.json
Copy/paste and save this snippet into package.json
{
"name": "my-gulp-project",
"version": "0.1.0",
"description": "My first Gulp project",
"devDependencies": {
}
}
// inside project root directory
npm install gulp --save-dev
npm install browser-sync gulp-autoprefixer gulp-minify-css gulp-rename gulp-sass --save-dev
// inside project root directory
touch gulpfile.js
Our project structure
my-gulp-project/
css/
main.scss
node_modules/
browser-sync
gulp
gulp-autoprefixer
gulp-minify-css
gulp-rename
gulp-sass
gulpfile.js
index.html
package.json