Permalink
Browse files

add iced-coffee-script support

  • Loading branch information...
andrewrk committed Jul 25, 2012
1 parent d4970ee commit 4920f436ba7f96dce8cbe3098043955bcb5c4114
Showing with 14 additions and 0 deletions.
  1. +1 −0 package.json
  2. +5 −0 src/jspackage.co
  3. +1 −0 tests/iced/expected.txt
  4. +2 −0 tests/iced/other.iced
  5. +5 −0 tests/iced/test.iced
View
@@ -19,6 +19,7 @@
"coffee-script": "~1.3.3",
"coco": "~0.7.6",
"LiveScript": "~0.9.11b",
+ "iced-coffee-script": "~1.3.3d",
"temp": "~0.4.0"
},
"scripts": {
View
@@ -198,3 +198,8 @@ export const extensions =
require('LiveScript').compile code, {options.bare}
depend_re: /^#depend "(.+)"( bare)?$/gm
+ '.iced':
+ require: 'iced-coffee-script'
+ compile: (code, options) ->
+ require('iced-coffee-script').compile code, {options.bare}
+ depend_re: /^#depend "(.+)"( bare)?$/gm
View
@@ -0,0 +1 @@
+sup dawg
View
@@ -0,0 +1,2 @@
+global.getString = (cb) ->
+ cb "dawg"
View
@@ -0,0 +1,5 @@
+#depend "other"
+
+await global.getString defer str
+
+console.log "sup #{str}"

0 comments on commit 4920f43

Please sign in to comment.