Currently in dev
Fmk for spa application.
See our wiki See our documentation
The build system is made with gulp
which is a node base build system. npm install -g gulp
Then you have to launch the following command: npm run build
which generates two outputs: one for the browser, one for node js (expecially for unit tests purpose).
The browser build is inside the dist/browser/fmk.js
Focus is publish under the name focusjs on npm.
All unit tests are written with mocha, and can be launched using the npm run test
command.
It uses mocha.
You have to configure the build.json
file which is at the root directory in order to copy the fmk.js dile into your vendor directory insode your application.
Then in your project, brunch should use it automatically.
Tip: Remember in order to launch brunch: brunch w
in the directory of your SPA project.
You can look at the focus-starter-kit project to have an example application using this fmk.
- Underscore.js
- Backbone.js
- Mocha
- Promises with Bluebird