npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-devscript

v3.0.7

Published

Simple development script to make working with TypeScript projects easy.

Downloads

442

Readme

DevScript

Simple development script to make working with TypeScript projects easy. DevScript

Why

I wrote this script to simplify my TypeScript workflow as I like to have all my files organised and hate having multiple terminals open at the same time. This script copies and compiles everything in src to out and then runs the file. It also automatically restarts the file on file additions, changes and deletions.

Installation

# global
npm i --location=global ts-devscript

# npm
npm i -D ts-devscript

# yarn
yarn add -D ts-devscript

Usage

# if global
devScript

# if local
npx devScript

Configuration

Possile Arugments

Note: These arguments can also be used in your package.json file, simply add the devScript property to the root of the package.json and use them as key-value pairs.

| Options | Type | Description | Default | | ---------------------- | --------- | ------------------------------------------------------------------------------------------------ | --------------- | | --help | | Shows the help command of devScript. | | | --src | string | Directory containing the source code. | src | | --out | string | Directory that will contain the output. | dist | | --deleteObsolete | boolean | Whether or not to delete files from out that are not in the src. | true | | --tsconfig | string | Path to a valid tsconfig.json file. | tsconfig.json | | --entry | string | Entry file to be executed after compilation. | index.js | | --depCheck | boolean | Whether or not to check the dependencies. | true | | --excludeDeps | string | Dependencies to exclude from automatically uninstalling. (String list seperated by commas) | | | --autoInstallDep | boolean | Automatically installs missing dependencies. (Needs depCheck enabled) | true | | --autoRemoveDep | boolean | Automatically removes unused dependencies. (Needs depCheck enabled) | true | | --autoInstallTypes | boolean | Automatically installs missing dependencies @types/. (Needs depCheck and autoInstallDep enabled) | true | | --autoRemoveTypes | boolean | Automatically removes unused dependencies @types/. (Needs depCheck and autoRemoveDep enabled) | true | | --autoUpdateOutdated | boolean | Automatically update outdated dependencies to their latest version. (Needs depCheck enabled) | false | | --autoUpdateDeprecated | boolean | Automatically update deprecated dependencies to their latest version. (Needs depCheck enabled) | false | | --updateSelector | boolean | Whether or not to show the update selector for deprecated or outdated dependencies. (Needs depCheck enabled) | true | | --todoCheck | boolean | Whether or not to check for TODO's. | | | --todoTags | string | Custom tags to include in the TODO check. (String list seperated by commas) | | | --copyOnly | boolean | Whether or not only to copy the files from src to out. | false | | --ignore | string | Files that should be ignored when watching files. (glob pattern) | | | --include | string | Files that should be included when watching files. (glob pattern) | | | --silent | boolean | Whether or not to print console logs. | false |