To boldy go where no javascript framework has gone before. A tiny, conventional and opionated javascript framework build ontop of MithrilJs with developer productivity in mind.
- field
- field_checkbox
- field_err
- field_file
- field_input_password
- field_input_text
- field_radio
- field_select
- field_textarea
Install all the dependencies
npm iWe use a Cakfile. This is similar to a Rubyfile but its for coffescript. In order to use the cake command you'll to need globally install coffescript
npm i --global coffeescriptTo compile the code:
cake compile
The compiled code will output to the build directory
npm 3.0 supprts installing local packages with the following command:
npm i --save /Users/andrewbrown/Sites/dilithium.js
you'll see something like this in your package.json
"dependencies": {
"dilithium-js": "file:../../dilithium.js"
}
In local development it can be hard for nodejs to find mithril and you have to temporarily fix the paths.
So change this:
import { m } from 'mithril'
import * as m from 'mithril'
import stream from 'mithril/stream'
to this:
import { m } from './../../node_modules/mithril/mithril.js'
import * as m from './../../node_modules/mithril/mithril.js'
import stream from './../../node_modules/mithril/stream/stream.js'