A simple kickstarter to front-end web development which uses Gulp v4.
This is my first time trying gulp so it won't be perfect. I just wanted to create a basic template to work off of with a file structure I liked.
- Live reloading
- Cache busting
- SCSS converted to css, auto prefixed and minified with sourcemaps)
- Javascript concatenated into a single file, minified with sourcemaps and supports ES6)
- Image minifying
Follow these steps in order to get the website up and running locally on your machine.
npm installto install any dependenciesnpm startorgulp watchto start a live reload session
npm run buildorgulpto build the application
gulporgulp buildto build the applicationgulp watchto enable live reloadgulp cleanto delete the build foldergulp stylesto run the style tasksgulp scriptsto run the script tasksgulp imagesto run the image tasksgulp faviconto run the favicon tasks
├── app
│ ├── images
│ │
│ ├── js
│ │ ├── main.js
│ │ │
│ │ └── vendors
│ │
│ └── scss
│ ├── abstracts
│ │
│ ├── base
│ │
│ ├── pages
│ │
│ └── main.scss
│
└── build
├── images
│
├── js
│ ├── app.min.js
│ │
│ └── vendors.min.js
│
└── css
└── styles.min.css- You can use any file structure for your javascript and scss files. The one provided is an example.