Project gulp starter - Arkadiusz Chatys www.iamarek.com
Gulp starter based on starter by Una Kravets (https://github.com/una)
- Scss support (gulp-sass)
- Minify CSS (gulp-minify-css)
- Minify JavaScript (gulp-uglify)
- Minify HTML (gulp-minify-html)
- Minify images (gulp-imagemin)
- Linting of JavaScript (gulp-jshint)
- Scss support (gulp-sass-lint)
- Cache (gulp-cached)
- Autoprefixer (gulp-autoprefixer)
- Browser Sync (browser-sync)
- Log size of project (gulp-size)
- Injecting Partials (gulp-inject-partials)
- Concatenating CSS/JavaScript files (gulp-useref)
- Clone this repository running
git clone [email protected]:iamarek/Sly-Gulp-Starter.git
in your terminal. - Go to folder inside running
cd Sly-Gulp-Starter
. - Run
npm install
to install all dependencies - Run
gulp
to start working on project
gulp
- to run dev environment with localhost:3000gulp prod
- to minify JavaScriptnpm test
- to run Mocha tests
To concatenate JavaScript files go to your html file and add all files in order inside of tags like so:
<!-- build:js js/main.js -->
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
<!-- endbuild -->
To concatenate CSS files go to your html file and add all files in order inside of tags like so:
<!-- build:css css/main.css -->
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/main.css">
<!-- endbuild -->
To include partial create keyword {% include path/to/your/file.html %}
.
To use Mocha tests run npm test
in your terminal