Focus library core part.
Currently in dev
Technical stack for spa application.
Here is the library structure. It works with focus components.
index.js //entry point__application/ //All application related functions/ helper__definition/ // all the domain and metadata informations__component // Component functions /helper__helper // Global helpers__exception // Global exceptions using error object__network // Network layer (fech, //)__router // Router related functions.__store //Store related methods__util //Utility functions
All unit tests are written with mocha, and can be launched using the
npm run test command.
It uses mocha.
debug unit tests
npm run test:debug
The build system is made with
gulp which is a node base build system.
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).
All build dependencies are listed into the devDependencies of the
npm run eslint in order to see your errors.
In order to install all your dependencies:
npm install --no-optional
The browser build is inside the
Focus is publish under the name focusjs on npm.
In order to use focus you can user
You can require submodules of focus such as the network: