coffee-toaster
Version:
Minimalist manager and build system for CoffeeScript, an alternative for AMD's or CJS's OOP patterns, but with similar results. Made for those who dare to use class definitions in CoffeeScript while being able to easily inherit from external files. Powered with imports directives that use wildcards facilities, exposed scopes and excluded files filter options. The system can even use folders-as-namespaces to help you avoid naming collisions in architecture.
18 lines (14 loc) • 376 B
text/coffeescript
#<< toaster/toast
fs = require 'fs'
path = require 'path'
exec = (require "child_process").exec
class InjectNS
constructor:( @builders )->
console.log "Declaring namespaces for files..."
for builder in @builders
for f in builder.files
f.getinfo true
fs.writeFileSync f.realpath, f.raw
f.getinfo false
console.log f.realpath
console.log "...done."