tscr
## Install
Last updated 2 years ago by andrewsinner .
ISC · Original npm · Tarball · package.json
$ cnpm install tscr 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.2                                ...           latest (2 years ago)

14 Versions

  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 1
Last Month 2
Dependencies (4)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |