Skip to content

Commit 2fa7b33

Browse files
committed
move to iced
1 parent 880b5fe commit 2fa7b33

9 files changed

+14
-7
lines changed

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Systatic: Static Site Authoring Tool in NodeJS
22

3-
Inspired by [Middleman](http://middlemanapp.com), this Node.js toolchain is written with [Bricks](http://bricksjs.com) and [Servitude](https://github.com/JerrySievert/servitude), to allow the quick authoring if static web apps.
3+
Inspired by [Middleman](http://middlemanapp.com), this Node.js toolchain is written with [Bricks](http://bricksjs.com) and a collection of plugins to allow the quick authoring if static web apps.
44

55
The focus here is to quickly develop and deploy apps that are heavier on CSS or Javascript, leveraging tools that allow the least amount of typing to get the job done (eg. Less, Stylus, CoffeeScript, Jade). Finally, to optimize file management so your apps load as quickly as possible (presumably via some CDN).
66

bin/systatic

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
var log = console.log,
4-
coffee = require('coffee-script'),
4+
coffee = require('iced-coffee-script'),
55
argv = require('optimist').argv,
66
systatic = require('../lib/systatic');
77

File renamed without changes.
File renamed without changes.

lib/plugins/clean.coffee

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{rmdirSyncRecursive} = require('wrench')
2+
{existsSync} = require('path')
23

34
module.exports =
45
name: 'clean'
@@ -7,7 +8,9 @@ module.exports =
78
builddir = config.buildDir
89

910
if builddir == '.' || builddir.match(/^\/$/) || builddir == '~' || builddir == ''
10-
return console.log "Nope. Won't delete #{builddir}"
11+
return console.log "Nope. Won't delete '#{builddir}'. Please fix your config"
1112

12-
rmdirSyncRecursive(builddir)
13+
if existsSync(builddir)
14+
rmdirSyncRecursive(builddir)
15+
1316
next()

lib/plugins/jade.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ module.exports =
2525
filename = fullname.replace(config.sourceDir, '').replace(/\//, '')
2626
outputfile = join(config.buildDir, filename.replace(/\.jade$/, '.html'))
2727
randomname = (Math.random() * 0x100000000 + 1).toString(36)
28-
nfs.mkdirSync(outputfile.replace(/\/[^/]+$/, ''), 0777, true)
28+
nfs.mkdirSync(outputfile.replace(/\/[^/]+$/, ''), 0x0777, true)
2929
jade.compile(randomname, fullname, outputfile, assets, merged, true)
3030
next()

lib/systatic.coffee renamed to lib/systatic.iced

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
iced.catchExceptions()
2+
3+
14
log = console.log
25
{join} = require('path')
36
path = require('path')

lib/utils.coffee renamed to lib/utils.iced

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ exports.compileOut = (basedir, filter, ignores, cb)->
3939
filename = fullname.replace(basedir, '').replace(/\//, '')
4040
filedata = fs.readFileSync(fullname, 'utf8')
4141
cb filename, filedata, (outputfile, output)->
42-
nfs.mkdirSync(outputfile.replace(/\/[^/]+$/, ''), 0777, true)
42+
nfs.mkdirSync(outputfile.replace(/\/[^/]+$/, ''), 0o777, true)
4343
fs.writeFileSync(outputfile, output, 'utf8')

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
"node": "~>0.6.0"
1717
},
1818
"dependencies": {
19+
"iced-coffee-script" : "~>1.3.3a",
1920
"optimist" : "~>0.2.0",
2021
"node-fs" : "~>0.1.3",
2122
"wrench" : "~>1.3.8",
2223
"bricks" : "~>1.1.4",
2324
"servitude" : "~>0.2.0",
24-
"coffee-script" : "~>1.2.0",
25+
"coffee-script" : "~>1.3.3",
2526
"jade" : "~>0.21.0",
2627
"less" : "~>1.3.0",
2728
"bricks" : "~>1.1.4",

0 commit comments

Comments
 (0)