FrameJS Component library starter is a setup using FractalJS for docmenting the components, while being a playground for development.
TodoMVC is included for reference, showing how to write documentation and serves as an example on how to use FrameJS.
Install dependencies:
$ npm installStart a development server:
$ npm startBuild for production and generate static documentation:
$ npm run buildThis starter-kit comes with Karma test runner for testing components.
Webpack is preconfigured to compile all test files called [file].spec.(ts|tsx) in the /src directory, and Karma is configured to load all test files and the compiled src/index.tsx.
To run all tests:
$ npm testTo run all tests and run on every test file change:
$ npm run test:watchSettings for Karma can be configured in karma.conf.js
Enjoy!