A boilerplate app for react.
This configuration enables you to create react apps with an easy to use interface.
All files in the src/ are used in the compile process. To get your app started, simply modify the index.tsx,
which act as a starting point, and modify index.html as needed.
Notice:
If you create CSS Modules, or add CSS Classes, you may also run
> gulp tcm
to create the type definitions for your CSS classes.
| Target | Description |
|---|---|
| tcm | Short for typed CSS modules. Creates the type definition for the CSS Files. |
| copysrc | Copy .ts or .tsx source files to the build directory (workaround for typescript not finding CSS modules). |
| copyassets | Moves assets to the dist directory. |
| build | build and distribute the source (depends on tcm, copyassets, copysrc) |
| bundle (virtual) | Bundles the JavaScript files for distribution. (depends on build) |
| clean | Remove build and distribution files. (Basically, compile from scratch.) |
| Argument | Value | Description |
|---|---|---|
| --type | development | Build unminified development Version |
| production | Build minified production Version |