npm install -g tscr
tscr with the
--lib flag, you will generate a template suitable for for developing NPM packages that use Typescript + React.
It will also create a
docs folder that acts as a website to test your code.
tscr is a CLI tool to quickly template a project that uses:
There are a few assumptions baked into the webpack build.
The template contains configuration files in
./src/config. These files are meant to export a
config object that is injected into the process.env variable depending on the environment you are building for.
The webpack configuration will extract styles into a single file and be included into the index.html file instead of injected into the DOM.