mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			391 B
		
	
	
	
		
			CoffeeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			391 B
		
	
	
	
		
			CoffeeScript
		
	
	
	
	
	
| fs = require 'fs'
 | |
| 
 | |
| {print} = require 'sys'
 | |
| {spawn} = require 'child_process'
 | |
| 
 | |
| build = (callback) ->
 | |
| 	coffee = spawn 'coffee', ['-c', '-o', '.', '.']
 | |
| 	coffee.stderr.on 'data', (data) ->
 | |
| 		process.stderr.write data.toString()
 | |
| 	coffee.stdout.on 'data', (data) ->
 | |
| 		print data.toString()
 | |
| 	coffee.on 'exit', (code) ->
 | |
| 		callback?() if code is 0
 | |
| 
 | |
| task 'build', 'Build from source',  ->
 | |
| 	build() 
 | |
| 	 |