/html-starter

A starter HTML project

Primary LanguageCSS

HTML Starter Project

What is this?

View the project page at http://github.com/shanetheboland/html-starter

HTML Starter is a starting point for prototyping HTML5 SASS projects. Uses gulp to create a dev environment for rapidly prototyping sites.

Features

  • sass compilation
  • sass folder structure
  • css minification
  • css linting
  • autoprefixer (automatically adds appropriate vendor prefixes)
  • browser reload on filesave
  • local server for serving a static site
  • google fonts
  • grid system
  • favicons

Getting started

  • Create a new repo for your project on Github
  • In terminal run
    git clone git@github.com:shanetheboland/html-starter.git yourNewRepoName
    cd yourNewRepoName
    rm -rf .git
    git init
    git remote add origin git@github.com:yourUserName/yourNewRepoName.git
  • git remote -v will allow you to check that you have changed the remote origin correctly. The output should look like:
    origin git@github.com:yourUserName/yourNewRepoName.git (fetch)
    origin git@github.com:yourUserName/yourNewRepoName.git (push)

Dev environment

To set up a convenient dev environment run this at the root of mnml

npm install .

Then run

npm start

Gulp is a javascript task runner. It compiles sass, lints the compiled css, and sets up a browser-sync server so you can save your fingers from pressing ⌘+TAB + ⌘+r every time you save a file.

  • Once you add & commit files you are ready to publish run:
git push origin master

Author

Shane Boland

License

The MIT License (MIT)

Copyright (c) 2014 @mrmrs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.