New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tsc-init

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-init

A command to initialize TypeScript and Webpack

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

TypeScript

FAQs

Package last updated on 16 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts