Socket
Socket
Sign inDemoInstall

@friends-library/dev

Package Overview
Dependencies
17
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @friends-library/dev

dev scripts for friends library


Version published
Weekly downloads
38
increased by1800%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@friends-library/dev

Meta-package for convenient development. Sort of like react-scripts for all-purpose typescript module development. Includes pre-configured out-of-the-box support for:

  • TypeScript (currently 4.5.x)
  • Jest (setup with ts-jest)
  • eslint (configured for typescript with opinionated defaults)
  • prettier
  • ts-node

Exposes a fldev bin that can be used with npx or as part of npm scripts:

# run the tsc compile checker, without emitting compiled files
$ npx fldev ts:check

# compile typescript according to tsconfig.json settings
$ npx fldev ts:compile

# run jest tests
$ npx fldev test

# run jest tests in "watch" mode
$ npx fldev test:watch

# run eslint
$ npx fldev lint

# run eslint, fixing fixable errors
$ npx fldev lint:fix

# run prettier (--write)
$ npx fldev format

# execute something with ts-node
$ npx fldev tsnode ./some-ts-script.ts

# run `ts:check`, `test`, `lint`, and `format --check`
$ npx fldev ci

These scripts are often useful embedded in npm scripts in your package.json, like so:

{
  "scripts": {
    "test": "fldev test",
    "test:watch": "fldev test:watch",
    "lint": "fldev lint",
    "lint:fix": "fldev lint:fix",
    "ts:check": "fldev ts:check",
    "format": "fldev format",
    "compile": "fldev ts:compile"
  }
}

⚠️ NOTE: This package does not follow semver. Instead, it's minor versions track with Typescript releases, so 4.5.x in this library would include typescript in the 4.5.x range. For that reason, it is recommend you install it pinning to an exact, or to a minor version, like : "@friends-library/dev": "~4.5.0".

FAQs

Last updated on 23 Feb 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc