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 install
Start a development server:
$ npm start
Build for production and generate static documentation:
$ npm run build
This 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 test
To run all tests and run on every test file change:
$ npm run test:watch
Settings for Karma can be configured in karma.conf.js
Enjoy!