Yet another riot.js + webpack project skeleton
Built with riot.js, webpack, SASS and ES6 syntax.
Installation with yarn
Run yarn install to install all dependencies.
Running the demo
- Run the mock backend with
yarn mock-api - Run
yarn startin another terminal to start the front-end dev server - Check out http://localhost:8888!
Running in production
- Run
yarn buildto build an optimized web-ready bundle - Use Caddy or your favourite static server to server the
publicdirectory. A template for theCaddyfilealready exists in the root directory
Configuration
dotenvhas been set up to read environment variables from the.envfile.- The site template file can be found in
src/index.ejs. HtmlWebpackPlugin injects the javascript bundle when building. - Create new components with create-riot-component
