CRUD operations for atom-based data stores.
You will need nodejs and Leiningen 2.0 or above installed.
Add atom-crud to your lein-npm-powered project:
;; project.clj
:node-dependencies [atom-crud "0.1.0-SNAPSHOT"]
Pull atom-crud to your machine:
lein npm install
Now you should have atom_crud/src/core.cl2
in your node_modules
directory.
Include it in your ChlorineJs source file(s):
;; some-file.cl2
(load-file "atom_crud/src/core.cl2")
Have your files watched and auto-compiled:
lein cl2c auto dev
This will watch for changes and re-compile *.cl2
files to Javascript.
Now open an other terminal, have mocha run the tests automatically:
lein npm run-script mocha-auto
If you just want to run the tests once:
lein npm run-script mocha
See unit tests for usage.
Copyright © 2014 Hoang Minh Thang
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.