Deprecated: This starter-kyt has been moved into the kyt monorepo. New Location
This starter-kyt should serve as the base for an advanced client-rendered React app.
- Create a new directory and install kyt
node_modules/.bin/kyt setup -r git@github.com:nytimes/kyt-starter-static.git
The following are some of the tools included in this starter-kyt:
- React - Component library
- React Router - Server and client routing
- Sass Modules - CSS Modules with a Sass pre-processor for styles
- Enzyme - React component testing
- html webpack plugin - Builds a static html file
-
You will find a
src/index.ejs
file which gets compiled to an html fileby the html webpack plugin. See more for configuration in the kyt.config.js. After a build, kyt will copy the html build intobuild/public
. -
As a performance optimization, React Router routes are loaded dynamically and chunked separately using the ES2015
System.import
directive. See more about Webpack 2 support and dynamic routing.
Want to build your own starter-kyt? See directions here.