8000 GitHub - jraymakers/web-app-template
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jraymakers/web-app-template

Repository files navigation

Web App Template

Template for web apps built using:

Also uses:

And supports:

Usage

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.

Source

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.

Maintenance

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0