7.0.0 • Published 25 days ago

@skyleague/node-standards v7.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

Node Standards (@skyleague/node-standards)

Nihil est sine ratione.

  • Gottfried Wilhelm Leibniz

Node Standards is an opinionated collection of best practices, bundled in a way to easily configure new (and old) typescript projects.

Keeping up-to-date with project configuration is hard enough on a single repository, let alone if you have to manage a handful. With Node Standards you can centrally build your configuration, and define a project structure - and keep them up to date with a linter. Node Standards if flexible and extensible enough that you can make it work for any project.

node-standards <command>

Commands:
  node-standards create <name>  create a new project
  node-standards lint           lint the project configuration

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Install

Install Node Standards using npm:

 $ npm install --save-dev @skyleague/node-standards

Table of Contents

Usage

Configuration

Node Standards takes little time to set up.

  1. Add Node Standards to the devDependencies
  2. Configure the project linting in the package.json

The package.json should adhere to the following type:

interface PackageJson {
  ...
  "node-standards": {
    type: "yargs-cli" | "library"
    template?: {
        // a list of files to exclude from linting
        exclude?: string[]
        // by default all the options are enabled
        lint?: {
            files?: boolean
            dependencies?: boolean
            devDependencies?: boolean
            script?: boolean
            definition?: boolean
        }
    }
  },
  ...
}

Create

Create a new project of the given type and name.

node-standards create <name>

create a new project

Positionals:
  name  the new package name                                 [string] [required]

Options:
  --type     package type
      [string] [required] [choices: "library", "yargs-cli"] [default: "library"]
  --local    create from local examples instead of Github artifact
                                                       [boolean] [default: true]

Lint

Ensure the project is up-to-date with the latest project structure and configuration. The --fix setting can be used to automatically fix most issues found.

node-standards lint

lint the project configuration

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
  --fix      try to fix the errors                    [boolean] [default: false]

Alternative projects

In no particular order, the following libraries try to solve similar problems (albeit very different):

PR's are very welcome if you think your project is missing here.

When not to use Node Standards?

  • We aim to configure our settings to be as strict as possible. Not everyone might like this.
  • Node Standards is an insanely opinionated implementation, and this may not fit your needs or vision.

Support

SkyLeague provides Enterprise Support on this open-source library package at clients across industries. Please get in touch via https://skyleague.io.

If you are not under Enterprise Support, feel free to raise an issue and we'll take a look at it on a best-effort basis!

License & Copyright

This library is licensed under the MIT License (see LICENSE.md for details).

If you using this SDK without Enterprise Support, please note this (partial) MIT license clause:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND

Copyright (c) 2022, SkyLeague Technologies B.V.. 'SkyLeague' and the astronaut logo are trademarks of SkyLeague Technologies, registered at Chamber of Commerce in The Netherlands under number 86650564.

All product names, logos, brands, trademarks and registered trademarks are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, trademarks and brands does not imply endorsement.

7.0.0

25 days ago

6.1.0

30 days ago

6.0.0

30 days ago

5.1.9

3 months ago

5.1.8

3 months ago

5.1.7

3 months ago

5.1.6

3 months ago

5.1.5

3 months ago

5.1.4

3 months ago

5.1.3

3 months ago

5.1.2

3 months ago

5.1.1

3 months ago

5.1.0

3 months ago

5.0.5

4 months ago

5.0.4

4 months ago

5.0.3

4 months ago

5.0.2

4 months ago

5.0.1

4 months ago

5.0.0

4 months ago

4.1.2

4 months ago

4.1.1

4 months ago

4.0.0

5 months ago

4.1.0

4 months ago

3.9.0

8 months ago

3.10.1

8 months ago

3.10.0

8 months ago

3.10.3

8 months ago

3.10.2

8 months ago

3.10.5

8 months ago

3.8.4

10 months ago

3.10.4

8 months ago

3.7.4

12 months ago

3.7.3

12 months ago

3.7.2

12 months ago

3.8.0

11 months ago

3.6.2

1 year ago

3.4.4

1 year ago

3.6.1

1 year ago

3.4.3

1 year ago

3.6.0

1 year ago

3.4.2

1 year ago

3.4.1

1 year ago

3.8.3

11 months ago

3.6.5

1 year ago

3.8.2

11 months ago

3.6.4

1 year ago

3.8.1

11 months ago

3.6.3

1 year ago

3.4.5

1 year ago

3.7.1

1 year ago

3.7.0

1 year ago

3.5.0

1 year ago

1.14.0

1 year ago

1.18.0

1 year ago

1.12.5

1 year ago

1.16.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

1.21.0

1 year ago

2.0.0

1 year ago

3.4.0

1 year ago

3.2.0

1 year ago

3.0.0

1 year ago

1.15.0

1 year ago

1.13.0

1 year ago

1.19.0

1 year ago

1.17.1

1 year ago

1.17.0

1 year ago

2.1.0

1 year ago

1.20.0

1 year ago

3.3.1

1 year ago

3.3.0

1 year ago

3.1.1

1 year ago

1.12.4

1 year ago

1.12.3

1 year ago

1.12.2

1 year ago

1.12.1

1 year ago

1.11.2

1 year ago

1.12.0

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.9.0

2 years ago

1.8.0

2 years ago

1.10.0

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.1.0

2 years ago

1.0.0-beta.2

2 years ago