Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
update gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Mar 13, 2015
1 parent 619900d commit 2693495
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions gulpfile.cirru
Expand Up @@ -13,15 +13,17 @@ gulp.task :html $ \ ()
= data $ object
:main $ ++: config.output.publicPath assets.main

= o $ gulp.src :./index.cirru
= o $ o.pipe (html $ object (:data data))
o.pipe $ gulp.dest :./
... gulp
:src :./index.cirru
:pipe $ html $ object (:data data)
:pipe $ gulp.dest :./

gulp.task :script $ \ ()
= script $ require :gulp-cirru-script
= rename $ require :gulp-rename

= o $ gulp.src :src/**/*.cirru (object (:base :src))
= o $ o.pipe $ script (object (:dest :../lib))
= o $ o.pipe $ rename (object (:extname :.js))
o.pipe $ gulp.dest :./lib
... gulp
:src :src/**/*.cirru (object (:base :src))
:pipe $ script (object (:dest :../lib))
:pipe $ rename (object (:extname :.js))
:pipe $ gulp.dest :./lib
2 changes: 1 addition & 1 deletion src/actions/ast.cirru
Expand Up @@ -15,7 +15,7 @@
:text text

= exports.removeNode $ \ (coord)
-- "slow down moving and do't trigger back"
-- "slow down moving and don't trigger back"
setTimeout $ \= ()
dispatcher.handleAction $ object
:type :remove-node
Expand Down

0 comments on commit 2693495

Please sign in to comment.