A minimal skeleton for building testable React apps using Babel
JavaScript
1,998
73 commits
updated Jul 31, 2018
A minimal skeleton for building testable React apps using Babel.
$ npm install
Start the local dev server:
$ npm run server
Navigate to http://localhost:8080/ to view the app.
A core philosophy of this skeleton app is to keep the tooling to a minimum. For this reason, you can find all the commands in the scripts section of package.json.
$ npm run server
Input: src/main.jsx
This leverages React Hot Loader to automatically start a local dev server and refresh file changes on the fly without reloading the page.
It also automatically includes source maps, allowing you to browse code and set breakpoints on the original ES6 code:
$ npm run build
Input: src/main.jsx
Output: build/app.js
Build minified app for production using the production shortcut.
$ npm test
Input: test/main.js
Output: coverage/
Leverages ava to execute the test suite and generate code coverage reports using nyc
$ npm run coveralls
Input: coverage/lcov.info
Sends the code coverage report generated by nyc to Coveralls.
$ npm run clean
Input: build/app.js
Removes the compiled app file from build.
Overall
Maintained
Code review
Latest release
Releases this year
207 followers · starred Feb 2016
126 followers · starred Mar 2015
624 followers · starred Jun 2016
7,617 followers · starred Mar 2015
A minimal skeleton for building testable React apps using Babel
JavaScript
1,998
73 commits
updated Jul 31, 2018
A minimal skeleton for building testable React apps using Babel.
$ npm install
Start the local dev server:
$ npm run server
Navigate to http://localhost:8080/ to view the app.
A core philosophy of this skeleton app is to keep the tooling to a minimum. For this reason, you can find all the commands in the scripts section of package.json.
$ npm run server
Input: src/main.jsx
This leverages React Hot Loader to automatically start a local dev server and refresh file changes on the fly without reloading the page.
It also automatically includes source maps, allowing you to browse code and set breakpoints on the original ES6 code:
$ npm run build
Input: src/main.jsx
Output: build/app.js
Build minified app for production using the production shortcut.
$ npm test
Input: test/main.js
Output: coverage/
Leverages ava to execute the test suite and generate code coverage reports using nyc
$ npm run coveralls
Input: coverage/lcov.info
Sends the code coverage report generated by nyc to Coveralls.
$ npm run clean
Input: build/app.js
Removes the compiled app file from build.
Overall
Maintained
Code review
Latest release
Releases this year
207 followers · starred Feb 2016
126 followers · starred Mar 2015
624 followers · starred Jun 2016
7,617 followers · starred Mar 2015