Giter VIP home page Giter VIP logo

focus-core's Introduction

NPM

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

Build Status Package Quality

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 mocha.

debug unit tests npm run test:debug

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. 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 package.json file.

Lint

npm run 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.

focus-core's People

Contributors

pierr avatar bernardstanislas avatar obtl avatar tommass avatar tomgallon avatar remigrange avatar bender-bending-bot avatar jabx avatar jerom138 avatar fconstantin avatar gideruette avatar ephrame avatar guenolek avatar plepaisant avatar sebez avatar gitter-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.