2.0.2 • Published 7 years ago

tscr v2.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

README

Install

npm install -g tscr

Usage

tscr my-cool-project

Flags

--lib

By calling 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.

Description

tscr is a CLI tool to quickly template a project that uses:

  • Typescript
  • React
  • Webpack
  • Sass

There are a few assumptions baked into the webpack build.

Assumption #1: process.env = configuration

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.

Assumption #2: Extracted SASS code

The webpack configuration will extract styles into a single file and be included into the index.html file instead of injected into the DOM.

Assumption #3: Exracted vendor code

The webpack configuration will extract all vendor code into a single javascript file separate from your app code.

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago