Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 12 additions and 13 deletions. Show diff stats Hide diff stats

  1. 12  Cakefile
  2. 13  README.markdown
12  Cakefile
@@ -4,16 +4,18 @@ fs = require 'fs'
4 4
 task 'build', 'Compile Coffeescript source to Javascript', ->
5 5
     command = require 'iced-coffee-script/lib/coffee-script/command'
6 6
     process.argv[2..]=['-o','lib','-c','src']
7  
-    command.run()   # this returns early and doesn't indicate error
  7
+    command.run()   # alas, this returns early and doesn't indicate error
8 8
       
9  
-    # wait a little
10  
-    await setTimeout(defer(),1000)
11  
-    
12 9
     # prepend shebang until issue fixed
13 10
     # https://github.com/jashkenas/coffee-script/issues/2215
14  
-       
  11
+    
15 12
     script_path = path.join('lib','imgurgitate.js')
16 13
     shebang = "#!/usr/bin/env node"  
  14
+
  15
+    # wait until script built
  16
+    while ! path.existsSync(script_path)
  17
+        await setTimeout(defer(),1000) 
  18
+
17 19
     fs.writeFileSync(script_path,[shebang,fs.readFileSync(script_path)].join("\n"))
18 20
     
19 21
     
13  README.markdown
Source Rendered
@@ -24,15 +24,12 @@ Install imgurgitate using the wonderful package manager `npm` distributed with N
24 24
 
25 25
 The executable script `imgurgitate` will be installed in your path alongside `node` and `npm`, or on Windows to `%appdata%\npm`. If you omit the `-g` switch, to `~/node_modules/.bin`. See the npm's [folders(1)](http://npmjs.org/doc/folders.html)
26 26
    
27  
-Build and release
  27
+Build and publish
28 28
 ----
29 29
 
30  
-(These instructions are useful only to me)
  30
+These instructions are really only useful to me. First, install [Iced CoffeeScript](http://maxtaco.github.com/coffee-script/), then
31 31
 
32  
-    iced -o lib -c src/imgurgitate.iced
33  
-    
34  
-Prepend a shebang line `#!/usr/bin/env node` to the file `lib/imgurgitate.js`
35  
-    
  32
+    icake build
  33
+    ./lib/imgurgitate.js
  34
+    icake clean
36 35
     npm publish
37  
-    
38  
-I don't understand why `iced` doesn't make a shebang line.

No commit comments for this range

Something went wrong with that request. Please try again.