This is a brief introduction on how to integrate the two technologies, and is itself a work in progress. I assume I'm doing everything wrong, but this works for now. If anyone wants to enlighten me, please do!
==============
This is the Montage app template.
Note: Before working on your app you will need to add montage to it.
npm install .
The template contains the following files and directories:
index.html
package.json
– Describes your app and its dependenciesREADME.markdown
– This readme. Replace the current content with a description of your appui/
– Directory containing all the UI .reel directories.main.reel
– The main interface component
core/
– Directory containing all core code for your app.node_modules/
– Directory containing all npm packages needed, including Montage. Any packages here must be included asdependencies
inpackage.json
for the Montage require to find them.assets/
– Assets such as global styles and images for your apptest/
– Directory containing tests for your app.all.js
– Module that point the test runner to all your jasmine specs.
run-tests.html
– Page to run jasmine tests manually in your browsertestacular.conf.js
– This is the testacular configuration file. You can start testacular by runningnode_modules/testacular/bin/testacular start
Create the following directories if you need them:
locale/
– Directory containing localized content.scripts/
– Directory containing other JS libraries. If a library doesn’t support the CommonJS "exports" object it will need to be loaded through a<script>
tag.