1.2.0 • Published 7 years ago
quark-router v1.2.0
Simple router.
This package is part of quark framework but it can be used independently.
Installation
npm install quark-router --saveUsage
Basic
import Router from 'quark-router'
const routes = [{
name: 'home',
callback: route => { },
path: '/'
}]
const router = new Router({ routes })To be written...
API
See https://fm-ph.github.io/quark-router/
Build
To build the sources with babel in ./lib directory :
npm run buildDocumentation
To generate the JSDoc :
npm run docsTo generate the documentation and deploy on gh-pages branch :
npm run docs:deployTesting
To run the tests, first clone the repository and install its dependencies :
git clone https://github.com/fm_ph/quark-router.git
cd quark-router
npm installThen, run the tests :
npm testTo watch (test-driven development) :
npm run test:watchFor coverage :
npm run test:coverageLicense
MIT License © Patrick Heng Fabien Motte
