stitch icon indicating copy to clipboard operation
stitch copied to clipboard

example uses reserved `package` keyword

Open 525c1e21-bd67-4735-ac99-b4b0e5262290 opened this issue 13 years ago • 0 comments

stitch = require("stitch")
fs = require("fs")
package = stitch.createPackage(paths: [ __dirname + "/lib", __dirname + "/vendor" ])
package.compile (err, source) ->
  fs.writeFile "package.js", source, (err) ->
    throw err  if err
    console.log "Compiled package.js"