type-scripts
Develop, test, and build Typescript packages with zero configuration.
Last updated a year ago by ncphillips .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install type-scripts 
SYNC missed versions from official npm registry.

code style: prettier lerna

type-scripts

Scripts to help develop, test, and build Typescript packages.

Tutorial

Here's a quick tutorial on how to build a Typescript package with type-scripts.

Step 1: Initialize the Package

mkdir my-cool-pkg
cd my-cool-pkg

yarn init

Step 2: Setup types-scripts

Install type-scripts

yarn add --dev type-scripts

And then setup your build script in the package.json.

package.json

{
  "scripts": {
    "build": "type-scripts-build"
  }
}

Step 3: Add the index.ts

src/index.ts

export default function() {
  console.log("Hello World")
}

Step 4: Build your package

yarn build

You're package will be output to build/my-cool-pkg.js

Current Tags

  • 1.2.1                                ...           latest (a year ago)
  • 2.0.0                                ...           next (2 months ago)

20 Versions

  • 2.0.0                                ...           2 months ago
  • 2.0.0-beta                                ...           2 months ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.2.1-7                                ...           2 years ago
  • 0.2.1-6                                ...           2 years ago
  • 0.2.1-5                                ...           2 years ago
  • 0.2.1-4                                ...           2 years ago
  • 0.2.1-3                                ...           2 years ago
  • 0.2.1-2                                ...           2 years ago
  • 0.2.1-1                                ...           2 years ago
  • 0.2.1-0                                ...           2 years ago
  • 0.2.0-0                                ...           2 years ago
  • 0.1.1-0                                ...           2 years ago
  • 0.1.0-0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 5
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |