Code Monkey home page Code Monkey logo

coffee-script-precompiler's People

Contributors

kika avatar nrw avatar petebacondarwin avatar ronnypfannschmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coffee-script-precompiler's Issues

pass filename in options

if the filename is in the options, coffeescript adds it to syntax errors and the like
it wold help debugging a bit

feature request: compile locally?

Would it be possible to add the ability to compile .coffee files locally (so that if you have foo.coffee, foo.js will be created in the same directory, as well as on your CouchDB server)? I'd like to be able to run my javascript locally as well, and for that, coffee -c . is a better option than coffee-script-precompiler, which is sad.

Thanks!

Unwanted coffeescripts are being attached

When you use the precompiler to compile and attach a coffeescript attachment, the .js file is attached correctly but the .coffee gets attached too. We ought to filter these out, I guess.
Pete

fail

CoffeeScript version 1.2.0
node version v0.6.19
kanso version 0.2.1

▾ Map/
▾ js/
test.coffee
▾ lib/
app.coffee
▸ packages/
index.html
kanso.json

kanso.json:

{ "name": "example-app", "version": "0.0.1", "description": "The simplest possible app", "attachments": ["index.html"],

"dependencies": {
"attachments": null,
"coffee-script-precompiler": null
},

"coffee-script": {
"modules": ["lib"],
"attachments": ["js"]
}
}

## push:

kanso push example
Reading dependency tree...
loading .
preprocessor attachments/add
preprocessor coffee-script-precompiler/compile
loading packages/attachments
loading packages/coffee-script-precompiler
Compiling attachment js/app.coffee
Compiling module lib/app.coffee
preprocessor coffee-script-precompiler/remove
postprocessor attachments/cleanup
Build complete: 120ms
Uploading...
Error: doc_validation
Bad special document member: _modules
at IncomingMessage. (/usr/lib/node_modules/kanso/lib/couchdb.js:220:35)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.parserOnMessageComplete as onMessageComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:374:27)
Failed

wrong MIME type

I tried using coffee-script-precompiler, and it uploaded the attachments it generated with the MIME type application/octet-stream, rather than application/javascript.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.