Socket
Book a DemoInstallSign in
Socket

@ht2-labs/typescript-project

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ht2-labs/typescript-project

A package containing what HT2 Labs needs for TypeScript projects.

2.0.62
latest
Source
npmnpm
Version published
Weekly downloads
97
-17.09%
Maintainers
3
Weekly downloads
 
Created
Source

TypeScript Project

Package containing scripts and configs that HT2 Labs need for TypeScript projects.

Usage

  • Install with npm i -D -E @ht2-labs/typescript-project@latest.
  • Create a "tsconfig.json" file in the root of your repository using the example TS config.
  • Create a "tslint.json" file in the root of your repository using the example TSLint config.
  • Add a lint script to your package.json file using tslint.
  • Add a build script to your package.json file using tsc.
  • Add /dist to your .gitignore file.
  • Create a src folder in the root of your repository for all TypeScript source code.

TS Config Example

{
  "extends": "./node_modules/@ht2-labs/typescript-project/configs/tsconfig.json",
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist",
    "typeRoots": ["./@types", "./node_modules/@types"],
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist/**/*"]
}

TSLint Config Example

{
  "extends": [
    "./node_modules/@ht2-labs/typescript-project/configs/tslint.json"
  ]
}

FAQs

Package last updated on 17 Jun 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.