Skip to content

Commit

Permalink
big merge with coco. also readded mode-ls for ace - closes satyr#77, c…
Browse files Browse the repository at this point in the history
…loses satyr#86, getting there on satyr#42 but needs more work
  • Loading branch information
gkz committed Jul 3, 2012
2 parents 06a6993 + 203973a commit 6f6f9bf
Show file tree
Hide file tree
Showing 25 changed files with 905 additions and 239 deletions.
12 changes: 2 additions & 10 deletions Slakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ minify = ->

task \install 'install LiveScript via npm' -> shell 'npm install -g .'

docs = <[ doc.ls ]>

task \build 'build lib/ from src/' ->
ext = /\.ls$/; webs = docs
ext = /\.ls$/
sources = for file in dir \src
\src/ + file if ext.test file and file not in webs
\src/ + file if ext.test file
run [\-bco \lib] +++ sources

task \build:full 'build twice and run tests' ->
Expand All @@ -54,12 +52,6 @@ task \build:parser 'build lib/parser.js from lib/grammar.js' ->
.replace /(:[^]+?break;)(?=\ncase \d+\1)/g \:
.replace /(:return .+)\nbreak;/g \$1

task \build:doc 'build doc/' ->
<- docs.forEach
name = it.slice 0 -3; js = require(\./lib/livescript)compile slurp \src/ + it
fs.writeFile "doc/#name.raw.js" js
slobber "doc/#name.js" minify js

task \build:browser 'build extras/' ->
LiveScript = require \./lib/livescript
co = ''
Expand Down
Loading

0 comments on commit 6f6f9bf

Please sign in to comment.