Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (52 sloc) 1.539 kb
async = require "async"
cakepop = require "./cakepop.js"
pkg = require "./package.json"
utils = cakepop.utils
builder = new cakepop.CoffeeBuild()
style = new cakepop.Style
coffee:
config: "dev/coffeelint.json"
js:
config: "dev/jshint.json"
CS_SOURCE = [
"Cakefile"
"cakepop.coffee"
]
CS_BUILD = [
"cakepop.coffee"
]
JS_SOURCE = [
"cakepop.js"
]
BUILD_PATHS = [
"doc"
]
codo = (cb) ->
title = "CakePop v#{pkg.version}"
utils.exec "codo -r README.md
-o doc
--title '#{title}'
cakepop.coffee -
HISTORY.md", cb
task "prepublish", "Run everything to get ready for publish.", ->
async.series [
(cb) -> style.coffeelint CS_SOURCE, cb
(cb) -> builder.build CS_BUILD, cb
(cb) -> style.jshint JS_SOURCE, cb
(cb) -> codo cb
], (err) ->
utils.fail err if err
utils.print "\nPrepublish finished successfully".info
task 'dev:clean', "Remove all unnecessary build files.", ->
utils.spawn "rm", ["-rf"].concat(BUILD_PATHS)
task "dev:coffeelint", "Run CoffeeScript style checks.", ->
style.coffeelint CS_SOURCE
task "dev:jshint", "Run JavaScript style checks.", ->
style.jshint JS_SOURCE
task "source:build", "Build CoffeeScript to JavaScript.", ->
builder.build BUILD
task "source:watch", "Watch (build) CoffeeScript to JavaScript.", ->
builder.watch BUILD
task "docs:build", "Build CoffeeScript to JavaScript.", ->
codo (err) ->
utils.print err ? "\nDocuments finished building.".info
Jump to Line
Something went wrong with that request. Please try again.