This is a minimal "boilerplate" for react projects and uses the following:
- Karma for tests with Jasmine for it's test framework and, webpack as a preprocessor and support for tests in Firefox and Chrom(e)(ium)
- Webpack with Babel and
style-loader
.
- Babel only has the
react-preset
configured (this seems to come with support of thees2015-preset
). - Webpack is configured with
webpack.config.js
and builds in todist/
- Express.js to run
__project_root__/dev-app.js
, which can be used to see the app loaded intodist/bundle.js
- Files are kept in
src/
. Being a boilerplate project, there is no support for sources in subfolders of source (though this may change in the future). - Test files are meant to be kept alongside their source files in the
src/
folder. - Compilation of the app with
yarn build
uses Webpack to deliver abundle.js
intodist/
- clone
- cd react-boilerplate
- yarn install
karma start
runs a single karma test-run on dummy instances, components, etc and exits.
webpack --config webpack.config.js
builds into dist/bundle.js