GithubHelp home page GithubHelp logo

maxburto / middleman-basis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pzi/middleman-basis

0.0 1.0 0.0 355 KB

Middleman Basis Template – Supporting Haml, Sass, CoffeeScript, Bower, ImageOptim, Sitemap

License: MIT License

Ruby 66.25% HTML 30.68% CoffeeScript 3.06%

middleman-basis's Introduction

Middleman Basis

Build Status

Basis comes with a bare minimum of pre-installs, ready for you to take it to the next level.
It is literally, the Basis for building a good, performant website.

General Information

Description

The Basis for building a good, performant website. Middleman Basis uses:

  • COMPASS
  • Haml
  • Sass
  • CoffeeScript
  • Bower
  • Modernizr.js
  • Normalize.css
  • Search Engine Sitemap
  • ImageOptim
  • Humans.txt

Getting Started

Before you get started, make sure you have node.js & Bower already installed.

  1. Install middleman-basis as Middleman template.

    git clone https://github.com/pzi/middleman-basis.git ~/.middleman/middleman-basis
  2. Initialize a new Middleman project with the middleman-basis template

    middleman init project_name --template=middleman-basis
    cd project_name
  3. Install Bower packages: bower install

  4. Install required gems: bundle install

  5. Run middleman

Make it your own!

After you have successfully set up the template for your new project, it's time to make it your own. You have the entire Middleman Basis repository as part of your new project, which includes a lot of files you won't need (e.g. .travis.yml, this version of the README etc.). So please, go ahead and remove files and/or change the content of them, according to your project's needs.

Customizing defaults

Middleman Basis makes use of Data Files. By default, the template comes with 2 data files:

  1. config.yml – a place for sitewide content
  2. humans.yml – a simpler way to add content to humans.txt

It's important that these 2 files get updated accordingly! It'd be unfortunate if your project gets launched with "Example" content. If you follow the examples, it will speed up the entire spin up procedure.

Optional

By default, middleman-basis only uses middleman-smusher to compress images. If you take image compression and optimisation serious, you will want to use middleman-imageoptim.

To make use of middleman-imageoptim, you will have to set up external utilities.

Once you have those tools, you can enable (uncomment it) in config.rb.

TODO

  • GitHub page
  • More/better documentation
  • Better spin-up instruction/how to use it as a template

Contributing

  1. Fork it
  2. bower install && bundle install
  3. Create your feature branch (git checkout -b feature/my-new-feature)
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Changelog

See Changelog

License

Middleman Basis was created by Patrik Affentranger and is distributed under the MIT license.

Donate Bitcoins

middleman-basis's People

Contributors

pzi avatar

Watchers

 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.