# tsc-init

> A command to initialize TypeScript and Webpack

Latest version **2.1.0** (published 2017-11-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install tsc-init
pnpm add tsc-init
yarn add tsc-init
bun add tsc-init
```

Provides the command `tsc-init`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2017-11-16 |
| First published | 2016-12-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Yiyi Sun |
| Maintainers | yysun |
| Keywords | TypeScript, Webpack |

## Links

- npm: https://www.npmjs.com/package/tsc-init
- Repository: https://github.com/yysun/tsc-init
- Homepage: https://github.com/yysun/tsc-init#readme
- Issues: https://github.com/yysun/tsc-init/issues
- npm.io page: https://npm.io/package/tsc-init

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2017-11-16
- 2.0.1 — 2017-02-14
- 1.0.0 — 2016-12-11

## README

# tsc-init

A tool to initialize TypeScript and Webpack in your project.

When starting a TypeScript project, we often repeat the following steps:
* Run _npm init_ to create the package.json file
* Run _tsc --init_ to create a tsconfig.json file
* Add webpack, ts-loader and TypeScript as dev dependencies
* Add Karma, jasmine, Karma-webpack as dev dependencies
* Create a webpack.config.js file to include ts-loader
* Create a karma.conf.js file
* Create a .gitignore file
* Run _git init_
* Add npm scripts for building and bundling

This tool does all of the above in one command, _tsc-init_.

## Installation

Install tsc-init from npm globally
```
npm install tsc-init -g
```

## Usage

Run following command inside your project folder
```
tsc-init
```

It creates or updates the package.json, tsconfig.json webpack.config.js.
It installs webpack, ts-loader and TyprScript packages as dev dependencies.
It also adds two npm scripts that can use to build for dev:
```
npm run dev
```
To start unit tests:
```
npm run test
```
To build for production:
```
npm run build
```


## Contributing

Fork it!

## License

MIT

---
_Source: https://npm.io/package/tsc-init · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
