##Getting Started
mimosa skel:new ui-component [nameOfFolder]
cd nameOfFolder
npm install
mimosa watch -s
,-s
is short for--server
- Point browser at localhost:3000
##Initial Coding Steps
- You will want to change the name of
assets/javascripts/libname
to something unique to your component. Once you've done that change thelib: 'libname'
path alias incommon.coffee
to point at the new folder and everything will stay wired up. - If you intend to use Bower to publish your component, you'll need to update the
bower.json
with the name of your component. You'll also want to update themain
config setting in thebower.json
to point at the code you intend to export from your component. You may not know that right away, but before publishing to bower you'll want to address this.
##To package
mimosa build -omp
will run the library package component which will generate abuild
directory containing several versions of the component.mimosa build -omp -P bundle
will actually build the entire project to thebuild
directory, in addition to creating the minified versions of the component, which is useful if the component artifacts include something other than just the bundled JavaScript.