Skip to content

A basic typescript project with good, clean webpack and vscode support

License

Notifications You must be signed in to change notification settings

themikelester/ts-boilerplate

Repository files navigation


Logo

Typescript Boilerplate Project

A starting point for canvas-based Typescript projects.

Getting Started

To get a local copy up and running follow these steps.

Installation

This template doesn't rely on any external dependencies or services.

  1. Create a new repo using this one as the template (or click "Use this template" on github)

    gh repo create <MyRepoName> --template https://github.com/themikelester/ts-boilerplate.git
  2. Modify per-project fields in webpack.common.js

    // @NOTE: These need to be updated per-project
    const WEB_TITLE = '<SomeTitle>'
    const WEB_DESC = '<SomeDescription>'
    const GITHUB_URL = 'https://github.com/<username>/<MyRepoName>';
    const GTAG_ID = <SomeGoogleAnalyticsID>;
  3. Modify the name in package.json

    {
      "name": "MyRepoName",
      ...
    }
  4. Modify Readme.md for your new repository

  5. Install NPM dependency packages

    yarn install
  6. (Optional) If errors are encountered during the previous step, there are likely some outdated package dependencies. Run the following to update all minor versions for packages listed in package.json

    yarn upgrade

    If you're feeling generous, push the updated yarn.lock back up to here.

(back to top)

Usage

  1. Start the local web server
   yarn start
  1. Visit http://localhost:8080 in your web browser

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

About

A basic typescript project with good, clean webpack and vscode support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published