Giter VIP home page Giter VIP logo

mivi's Introduction

HTML5 / GULP / $

HTML5/JQuery & Gulp and other js to support IE8+

##Assets

##Deployment

##Structure

In the app folder
The index.html file.

assets folder: It holds and style, data, fonts, images and vendor js

2. Naming conversions & structure guide


Naming files
This is relate to CSS modulariry.
Please create modules files and add them to assets>sass>modules. Then call them inside style.scss file.
All the extra files (partilas, modules, lib) should start with underscore so they won't be compile as independent files.
files names example:

  • _mod-bt.scss
  • _mod-footer

3. Development


JS:
Try to build the main.js in a modular way.
There is a starting IFFE strucutre already in place in the main.js

Fonts:
Please add the necessary fonts to the font folder and edit the assets>sass>partilas> _fonts.scss file to call the font. It has a icon font added to it already.

4. Gulp task runner


This seed uses gulp to minify, concatenate, compress images, autoprefix css, template cache system, jshint and sass compiler.

You can edit Gulpfile.js to adapt to your needs.

How to use it

  1. in the terminal cd to your project folder $cd project_folder

  2. $npm install

  3. $gulp server (to run project and you can edit it. This will refresh the page)

  4. $gulp build (this will create the dist folder with concatenated files and compressed imgeas)

  5. $gulp build --prod (this will generate dist folder for production)

  6. to test dist folder you can $gulp server:dist (this will show the files in the dist folder)

Gulp has a server that opens your localhost autmoatically and it comes with livereload

mivi's People

Watchers

Chris Camplin avatar James Cloos avatar

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.