Giter Site home page Giter Site logo

drop-html's Introduction

START

HTML5 starter kit for creating HTML5 applications and User Interfaces (UIs), intergrated with GULPJS for fast, clean and optimized web app creation.

It has all the necessary requirements to get anyone started in creating apps fast and easy.

What does it do for me?

START basically does the following:

  1. compiles your scripts, templates, styles (both transpilation and precompilation is taken care of here)
  2. lints them (checks for any syntax error)
  3. notifies you about errors via console and system notifications
  4. wraps the scripts and templates in common.js / AMD modules. (for build systems)
  5. concatenates scripts and styles
  6. generates source maps for concatenated files
  7. copies assets and static files the respective required project production directory
  8. shrinks the output by minifying code and optimizing images
  9. monitors/watches your files for changes and updates realtime wherever relevant, reloads to reflects the changes to the browser
  10. create a test and distribution/final versions of your app or UI without compromising the original code

Concatinates all CSS into app.full.css and JS into app.full.js or app.full.min.js after minification.

Dependencies

You will need to install some stuff, if you haven't already:

Majors:

Secondaries(click for further information):

  • npm (installed together with node.js, usually bundled in it)
  • gulpjs (part of the instructions below)
  • bower

Getting Started

Once you have NodeJS installed, run_(type/copy paste int the command line window and press ENTER)_:

To download the boilerplate

$ git clone https://github.com/kn9ts/start-to-grunt name_of_your_project

After cloning/copying the boilerplate, please get into your project's directory/folder

$ cd name_of_your_project

To install Grunt-CLI (Command Line) plugin/tool

$ sudo npm install -g gulp

To install gulp/project dependecies

$ npm install

To install default project front-end assets/libraries eg. bootstrap, jQuery... NOTE: This downloads CSS and JavaScript libraries that usually default in most projects nowadays. They are downloaded into the bower_assets folder that can be referenced in the HTML you are editing as you would have with any CSS and JavaScript files in your project, only that this way we give your application a good structure and files separation.

$ bower install

Note: Each of the '$' (dollar) sign denotes a step (so steps 4 in total)

Note: You can skip STEP 2($ sudo npm install -g gulp) if you already did install the gulp command line plugin/tool in any prior project with or without any relation to this boilerplate

This will install all the things you need for running the gulp-tasks automatically.

Note: As stated prior. You need to have a running node.js and ruby along with npm. Please install this before setting up START in your project's directory. Ruby comes default in most systems nowadays so I believe you do have that already.

Finally Build and launch

Now you can start developing your site. Therefore use the GruntJS default task (type in your Terminal and press ENTER):

$ gulp

This will create a dist folder with a distribution application css and js files. All your files should point to thhis ./dist folder for you custom coded files that are in './js' prior to compilation

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

Version: 1.1.0

License

Copyright (c) 2014 Eugene Mutai Licensed under the MIT license

drop-html's People

Contributors

kn9ts avatar

Watchers

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