A starter app for building apps in WinJS and React + ES6(babel) + postcss. Thanks to (https://github.com/pheuter/essential-react) for great react starter!
- Use ES6 in UWP Apps! :)
- Test in browser or as UWP App in Visual Studio
- PostCSS, Babel 6 with Webpack and Hot Loader
- Use React-WinJS for create components
- Import css files as class names
- No specific implementation of Flux or data fetching patterns
$ npm installStart the local dev server:
$ npm run serverNavigate to http://localhost:8080/ to view the app.
Build app:
$ npm run buildOpen the project folder in Visual Studio, and make sure that /build folder is included in project. Hot-reloading is unavailable in Visual Studio, so every change in code requires re-build project. It is better to debug in browser.
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 serverInput: 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 buildInput: src/main.jsx
Output: build/app.js
Build minified app for production using the production shortcut.
$ npm testInput: test/main.js
Output: coverage/
Leverages ava to execute the test suite and generate code coverage reports using nyc
$ npm run coverallsInput: coverage/lcov.info
Sends the code coverage report generated by nyc to Coveralls.
$ npm run cleanInput: build/app.js
Removes the compiled app file from build.
Move css from WinJS to webpack loader.