CCliff / base-tumblr

Base Tumblr Theme with Backbone & Marionette

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

base-tumblr

Overview

This repo attempts to marry base-marionette with the needs of custom tumblr themes.

It's roughly based off of the html from https://github.com/davesantos/tumblr-boilerplate

Most of the tumblr html action happens in https://github.com/UseAllFive/base-tumblr/blob/master/web/index.html

Getting started

npm install
bower install
grunt

Development Flow

  1. Run node rendered_server.js to server up the pre-rendered tumblr html with every post type
  2. Develop js/css as needed
  3. Deploy and test

Annotated Source

We use groc to generate annotated source code for all our files. It is generated automatically when grunt is running and can be found at <webroot>/docs/app.html.

Deploy Process for Production

Deploy

  1. Install dependencies npm install;bower install
  2. Copy require-main.js to compiled.js and upload through tumblr's UI

Testing

Code Standards

Sublime Settings

The JavaScript linting for this project requires Sublime Text 3.

In Sublime Text 3 (ST3) install the following packages CMD + Shift + P:

  • SublimeLinter
  • SublimeLinter-jshint
  • SublimeLinter-jscs

Next make sure you globally install the following on your command line:

  • jshint npm install -g jshint
  • jscs (JavaScript Code Style Checker) npm -g install jscs

Resources

About

Base Tumblr Theme with Backbone & Marionette


Languages

Language:JavaScript 64.5%Language:HTML 25.6%Language:CSS 8.6%Language:Shell 0.8%Language:Ruby 0.5%