edemaine:civet

v0.0.0Published last week

edemaine:civet

Civet in Meteor

This Meteor package lets you write code in Civet in .civet files, and automatically compiles them to JavaScript.

Installation

meteor add edemaine:civet
meteor npm install --save-dev @danielx/civet

Note that the Civet compiler @danielx/civet is a peer NPM dependency, so that you can control which version to install. But that means you need to install it yourself.

This package offers broad compatibility with Meteor versions 2 and 3. In particular, for older Meteor releases that ship an older Node.js, Babel transpiles the Civet compiler itself, so that it runs despite modern JavaScript syntax.

References

This implementation is based on Meteor's CoffeeScript compiler, which is MIT licensed:

Testing

npm install
meteor test-packages ./

Future Work

Civet actually supports (and compiles to) TypeScript. Ideally we would integrate with Meteor's TypeScript support, such as zodern:types.