/simple-work-template

Simple gulp template. Imagemin, cssnano, jshint, uglifyjs, plumber, autoprefixer, browser-sync

Primary LanguageJavaScriptMIT LicenseMIT

Simple gulp web-develop template

Based on Vedees work template

Read this in other languages: Русский

The template uses a Sass syntax and project structure with source code in the directory dev/ and production folder build/, that contains ready project with optimized CSS, JS.

Gulp tasks

  • $ gulp
    Default gulp task (sass auto compiling, jshint, browser-sync) for web development;
  • $ gulp build
    Build project to build/ folder (optimize images (imagemin), css (cssnano), js (uglifyjs));
  • $ gulp cache
    Clear all gulp cache.

Install only files

  1. Simply download the repository as an archive from GitHub,

    or

    In the folder, where you want to copy the files, run the following commands:
    $ git clone --depth=1 --branch=master https://github.com/K0nfy/simple-work-template.git simple-work-template
    $ rm -rf !$/.git
  2. $ npm i
  3. $ gulp - to start a default gulp task

Install as a repository

If you install this template as a repository, you will encounter a problem on saving the repository of your project which was made in this template.

In the folder, where you want to copy the repository, run the following commands:

  1. $ git clone https://github.com/K0nfy/simple-work-template.git
  2. $ cd simple-work-template
  3. $ npm i
  4. $ gulp - to start a default gulp task

Known bugs

  1. Creating a new directories during work will cause gulp task "html:dev" triggering on any actions in devFolder and subfolders.