npm install peakpeak
===============
 
Peak is a node toolkit for developing and deploying Tumblr themes.
- Write Tumblr themes with your favorite HTML, CSS, and JavaScript preprocessors; include Tumblr tags natively with language-friendly syntax.
- Preview Tumblr themes in real-time with actual Tumblr content.
- Deploy to Tumblr with one prompt in your command line.
via npm:
```
$ npm install peak -g
1. Create a new peak project:
``
$ peak new mytheme
where mytheme is the path of the folder you'd like to create. Optionally, run peak new with flags to configure your project (see configuration options).mytheme
2. Change directory to and start the watcher:
``
$ cd mytheme
$ peak watch
Run with --help or -h for options.peak deploy
3. Write your Tumblr theme!
- See the syntax docs for Peak's language-friendly syntax for incorporating Tumblr tags/blocks and more.
- See the languages docs for supported template languages.
4. Using a browser, navigate to localhost:1111.
5. To deploy your theme to Tumblr, run from your project's root folder.
Peak includes language-agnostic syntax for incorporating Tumblr tags and blocks in HTML, CSS, and JavaScript along with Peak-specific tags to further simplify Tumblr development.
Take, for example, this jade theme (see languages):
`jade`
doctype html
html
head
title !(Title)
// +(src: 'style.styl' media: 'all')
// +(src: 'main.coffee')
body
img(src="@(images/peak.jpg)")
// #(Posts)
article
h1 !(Title)
// ##
Peak includes custom syntax for:
- Tumblr tags:
`jade`
!(Title)
- Tumblr blocks:
`jade`
// #(Posts)
// ##
Peak also includes unique syntax for:
- inlining a theme (HTML, CSS or JavaScript).
`html`
- applying base URLs to external assets specific to watching or deploying.
`html`
)
When watching the theme, Peak will render Tumblr tags and blocks with the specified blog's context, like so:
`html`

Post 1
Post 2
Post 3
However, on deploy, Peak will compile Tumblr tags in their standard syntax:
`html``

{block:Posts}
{Title}
{/block:Posts}
For more, check out the Syntax docs.
- Configuration
- Syntax
- Languages
- Certain Tumblr tags are incompatible with Peak as they're not part of Tumblr's public customize API.
- Details on the license can be found here
- Details on running tests and contributing can be found here