focusjs
Technical stack in order to build single page application.
Last updated 5 years ago by pierr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install focusjs 
SYNC missed versions from official npm registry.

Focus

NPM

Join the chat at https://gitter.im/KleeGroup/focus

Build Status

Currently in dev

Technical stack for spa application.

structure

Here is the library structure. It works with focus components.

  • Structure:
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

Unit tests

All unit tests are written with mocha, and can be launched using the npm run test command. It uses jest.

debug unit tests node-debug --nodejs --harmony ./node_modules/jest-cli/bin/jest.js --runInBand

Dependencies

  • Focus is written using the latest JS standards (ECMASCRIPT6/2015) and uses babeljs to transpile into ES5 for the browser.
  • React is used as a view layer / rendering engine.
  • Lodash is used to provide lots of helpfull standard utility functions.

Documentation and help

See our wiki See our documentation

How to build the lib

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). All build dependencies are listed into the devDepandencies of the package.json file.

Lint

gulp eslint in order to see your errors.

Dependencies

In order to install all your dependencies: npm install --no-optional

Browser

The browser build is inside the dist/focus.js

Node js

Focus is publish under the name focusjs on npm. In order to use focus you can user require('focus') You can require submodules of focus such as the network: require('focus/network/fetch') or require('focus').network.fetch.

Contributors

Current Tags

  • 0.10.2                                ...           latest (5 years ago)

21 Versions

  • 0.10.2                                ...           5 years ago
  • 0.10.1                                ...           5 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.0-1                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.4-0                                ...           5 years ago
  • 0.8.3                                ...           5 years ago
  • 0.8.2-beta                                ...           5 years ago
  • 0.8.0                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.4                                ...           5 years ago
  • 0.6.3                                ...           5 years ago
  • 0.6.2                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.5                                ...           5 years ago
  • 0.5.4                                ...           5 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.3                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (15)
Dev Dependencies (17)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |