Template for web apps built using:
Also uses:
And supports:
Click the green "Use this template" button on the main repository page. (Or just follow this link.)
Choose a name for your new repository, create it, and create a local clone.
Run npm install
to get dependencies.
This template uses the JR tool to run jobs.
Common jobs include:
-
jr build
Run development build. Compiles TypeScript, lints with ESLint, bundles with Webpack. Output is written to the
out
directory. -
jr buildProd
Same as
jr build
, but produces a minified, optimized output bundle suitable for deployment. -
jr watch
Watches for changes and rebuilds as necessary. Uses
webpack --watch
. -
jr serve
Runs a simple local web server for the static files in
out
. Uses BasicServe.
Other jobs are available; see jobs.js
.
Custom jobs can easily be added. See the JR documentation.
TypeScript source code for a skeleton web app is included.
The build depends directly the two files in src/entry
(index.html
and main.tsx
) as well as src/favicon/favicon.svg
.
A root React component (Root
) is provided in src/root/components
. Render your app here.
Some basic TypeScript and TypeStyle helpers are provided (in src/typescript
and src/style
). Use them or remove them, as desired.
To update dependencies, npm-check-updates is recommended.
Install globally with npm install -g npm-check-updates
.
Run ncu
to list available updates.
Run ncu -u
to update package.json to latest versions of all dependencies. More options are available for finer control.
Run npm install
to install updates.