Coder Social home page Coder Social logo

dbox / gulpfast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artisin/gulpfast

0.0 3.0 0.0 2.78 MB

A Gulp Build Tool To Help You Gulp Fast (Jade, Stylus, PostCss, Webpack, Babel, Karma, BrowserSync)

Home Page: http://artisin.github.io/gulpFast/

License: Other

HTML 6.76% JavaScript 21.10% CSS 72.14%

gulpfast's Introduction

#Gulp Fast - A Gulp Build Tool ####Jade, Stylus(with the all the goods), PostCss, Webpack, Babel, Karma, BrowserSync

Build Status Dependency Status ###Description This is a tailored build tool for front end development designed for speed and efficiency. I am still working on these docs, so hold on a minute if that is what you are looking for.

####Install Dependencies

npm install

####Commands Development

gulp

Test

gulp test

Production

gulp build

Deployment to Github Pages

gulp deploy

Check It Out

Note

  • When using this option any folders/files in subPages will be automatically converted to use a hyphenated naming convention and put in the root directory.
    • For example if the file path is: subPages/magic/show.html it will be converted to magic-show.html and placed in the root. So for your link you would need to use the following convention ./magic-show
Includes the following

####Notes #####Folder Structure Not set in stone yet, but will be soon.

  • Views (All jade files and components are located here.)
    • _components
      • Various reusable components.
    • _includes
      • Header, footer, ect.
    • _layouts
    • subPages
      • Any sub-directory pages go here.
      • Note: This directory is automatically removed on development, production, and deploy.
        • Example: In your app directory you have a file in subPages/magic/show.html in the dist directory it would be magic/show.html
  • Assets
    • _root
      • All root assets go in this folder which will automatically be injected into the projects root directory on deploy or build commands.
      • Useful for putting 404, favicon, ect assets so they don't get in the way during development.
    • fonts
    • icons
      • Any svg files in this folder will be automatically compiled and converted to a fonts. Additionally, it will generate css class's for you based on the file name. The folder in which you can locate these class's is in assets\styles\_generated Note: this file will be regenerated every time your run a gulp command
      • For optimal results use a unicode prefix for the file name. For example uE001-facbook.svg the following generated class you could then use in your html via .icon.-facebook
    • images
      • Any image put in this folder will automatically be compressed
    • js
      • This is where your javascript files will be located. And as of right now I still have not decided on a finial structure, although, everything should be self explanatory.
    • stlyes
      • This is where your stylus files will be located. And as of right now I still have not decided on a finial structure, although, everything should be self explanatory.

#####Underscore folders/files Any file of folder with an underscore prefix (_) will be ignored and not compiled directly into your project. For example, lets consider the .styl files, there is no reason to have these files and or folders compiled into your project considering we have a shared.styl file in which we define all our imports imports. Nevertheless, there are times when you want or need to have various .styl file compiled separately, and this methodology give you a convenient and easy way to do so.

#####Asset Injection Any css or js file with shared at the beginning of its name will be automatically injected into your project. Although, upon a build or delpoy command any css file with the an underscore (_) in its name will not be injected into your project but rather concatenated with your main shared.styl file. For example: the file shared_Buttons.styl during development will be injected into your project as a seperate file, although, it will be concatenated durring production. However, a file such as sharedColors.styl will not be concatenated during production and injected as a seperate asset.

##Thanks

  • gulp
  • gulp-starter for the jump start.
  • @corysimmons lots of love, for all your work with girds.
  • And thanks to all the developers whos packages made this possible.

##TODO Queue

  • Update packages
  • Refine PostCss integration
  • gulp-strip-comments
  • Finalize project folder structure

gulpfast's People

Watchers

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