4.5.2 • Published 2 years ago

@friends-library/dev v4.5.2

Weekly downloads
53
License
MIT
Repository
github
Last release
2 years ago

@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".

4.5.0

2 years ago

4.5.2

2 years ago

4.5.1

2 years ago

4.4.1

3 years ago

4.4.0

3 years ago

4.1.19

3 years ago

4.3.1

3 years ago

4.1.20

3 years ago

4.3.0

3 years ago

4.1.17

3 years ago

4.1.18

3 years ago

4.1.16

3 years ago

4.1.14

3 years ago

4.1.15

3 years ago

4.1.13

3 years ago

4.1.12

4 years ago

4.1.11

4 years ago

4.1.10

4 years ago

4.1.9

4 years ago

4.1.8

4 years ago

4.1.7

4 years ago

4.1.4

4 years ago

4.1.3

4 years ago

4.1.6

4 years ago

4.1.5

4 years ago

4.1.0

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.0.8

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

4.0.3

4 years ago