GithubHelp home page GithubHelp logo

iamarek / sly-gulp-starter Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 243 KB

Starter by https://github.com/una modified by http://www.iamarek.com

License: Other

JavaScript 9.13% HTML 1.59% CSS 89.27%
html css gulp gulp-starter scss starter-kit starter-template starter-project boilerplate boilerplate-html boilerplate-template

sly-gulp-starter's Introduction

Project gulp starter - Arkadiusz Chatys www.iamarek.com

Gulp starter based on starter by Una Kravets (https://github.com/una)

Table of content

  1. What's included
  2. How to start
  3. Commands
  4. Concatenating files
  5. Including Partials
  6. Mocha testing

What's included:

  • 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)

How to start:

  1. Clone this repository running git clone [email protected]:iamarek/Sly-Gulp-Starter.git in your terminal.
  2. Go to folder inside running cd Sly-Gulp-Starter.
  3. Run npm install to install all dependencies
  4. Run gulp to start working on project

Commands

  • gulp - to run dev environment with localhost:3000
  • gulp prod - to minify JavaScript
  • npm test - to run Mocha tests

Concatenating files

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 -->

Including Partials

To include partial create keyword {% include path/to/your/file.html %}.

Mocha testing

To use Mocha tests run npm test in your terminal

sly-gulp-starter's People

Contributors

achatys avatar iamarek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sly-gulp-starter's Issues

how is this different to Una's?

Hey

I'm just about to spin this up for some quick prototype testing <3

It'd be great if there was a list in the readme explaining what's different :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.