nrw / coffee-script-precompiler Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://kan.so/docs/Using_coffeescript_with_kanso
Home Page: http://kan.so/docs/Using_coffeescript_with_kanso
The error is Could not require module: lib/filters (from: lib/app) - Module not found
.
if the filename is in the options, coffeescript adds it to syntax errors and the like
it wold help debugging a bit
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!
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
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
{
"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
I tried using coffee-script-precompiler, and it uploaded the attachments it generated with the MIME type application/octet-stream
, rather than application/javascript
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.