GithubHelp home page GithubHelp logo

stochasticspring / types-installer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nfour/types-installer

0.0 0.0 0.0 95 KB

Installs @types for your dependencies

Shell 3.38% JavaScript 4.51% TypeScript 92.11%

types-installer's Introduction

NPM   Build Status

Types Installer

A CLI which updates and populates missing @types/* for your dependencies.

Install

yarn global add types-installer
# or
npm i -g types-installer
# then
types-installer

Or locally:

yarn add types-installer
# then
yarn types-installer

CLI

  Usage: types-installer [options] [command]

  Commands:

  - interactive

  - install [options] [dependency]
      -s, --selection <selection>  devDependencies, dependencies or all
      -D, --toDev                  Save all types to devDependencies
      -p, --packageManager         Choose a package manager: npm, yarn or pnpm

Interactive

% types-installer

  ? Install options: all

  ? Install @types/* to devDependencies? Yes

  ? Which package manager? yarn

    Installing all @type dependencies...
    ? select jest (Installed), ts-jest , ts-node , tslint , tslint-eslint-rules , typescript , chalk , commander (Installed), execa , inquirer

    @types/tslint not found or failed to install
    @types/chalk found

    success Saved 1 new dependency.
    └─ @types/[email protected]

Non-Interactive

% types-installer install

  Installing all @type dependencies...

  @types/tslint not found or failed to install
  @types/chalk found

  success Saved 1 new dependency.
  └─ @types/[email protected]
% types-installer install chalk

  Installing dependency chalk @types
  @types/chalk found

  success Saved 1 new dependency.
  └─ @types/[email protected]
  • types-installer --help for more options

Behavior

  • Types are by default saved to dependencies or devDependencies, wherever the dependency exists.
  • To force everything top be saved into devDependencies, add the --toDev flag.

types-installer's People

Contributors

nfour avatar alyman avatar countzero1981 avatar phonicmouse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.