@stoplight/scripts
Scripts that help when creating, testing, releasing, and linting libraries.
Last updated 3 months ago by marbemac .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @stoplight/scripts 
SYNC missed versions from official npm registry.

@stoplight/scripts

Maintainability Test Coverage

Usage

Create a new library:

npx @stoplight/scripts create:lib

Commands

sl-scripts build

Builds src or docs.

USAGE
  $ sl-scripts build

OPTIONS
  --verbose  moar logs

EXAMPLES
  $ sl-scripts build
  $ sl-scripts build:typedoc

See code: dist/commands/build/index.ts

sl-scripts create:lib

Scaffold out a new library.

USAGE
  $ sl-scripts create:lib

EXAMPLE
  $ sl-scripts create:lib

See code: dist/commands/create/lib.ts

sl-scripts help [COMMAND]

display help for sl-scripts

USAGE
  $ sl-scripts help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

sl-scripts release

Publish new src or docs release.

USAGE
  $ sl-scripts release

OPTIONS
  --verbose  moar logs

EXAMPLES
  $ sl-scripts release
  $ sl-scripts release:docs

See code: dist/commands/release/index.ts

sl-scripts release:docs

Push built docs to github pages.

USAGE
  $ sl-scripts release:docs

OPTIONS
  --dry-run  run the release process but do not publish
  --verbose  moar logs

EXAMPLE
  $ sl-scripts release:docs

See code: dist/commands/release/docs.ts

Overriding Configs

Jest

Simply create a jest.config.js file in the root of your project, and extend the default config. For example:

// ./jest.config.js
module.exports = {
  preset: "@stoplight/scripts"
};

TS

Simply create a tsconfig.json file in the root of your project, and extend the default config. For example:

// ./tsconfig.json
{
  "extends": "@stoplight/scripts/tsconfig.json",
  "include": ["src"],
  "compilerOptions": {
    "outDir": "dist"
  }
}

TSLint

Simply create a tslint.json file in the root of your project, and extend the default config. For example:

// ./tslint.json
{
  "extends": ["@stoplight/scripts/tslint.json"]
}

Semantic Release

Simply add a release property to your package.json file. For example:

// ./package.json
{
  // ... props
  "release": {
    "pkgRoot": "dist",
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator"
    ]
  }
  // ... props
}

Current Tags

  • 7.0.3                                ...           latest (3 months ago)

31 Versions

  • 7.0.3                                ...           3 months ago
  • 7.0.2                                ...           4 months ago
  • 7.0.1                                ...           4 months ago
  • 7.0.0                                ...           5 months ago
  • 6.0.1                                ...           5 months ago
  • 6.0.0                                ...           5 months ago
  • 5.1.0                                ...           7 months ago
  • 5.0.0                                ...           8 months ago
  • 4.3.0                                ...           8 months ago
  • 4.2.1                                ...           8 months ago
  • 4.2.0                                ...           8 months ago
  • 4.1.0                                ...           9 months ago
  • 4.0.0                                ...           10 months ago
  • 3.1.1                                ...           10 months ago
  • 3.1.0                                ...           10 months ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago

Copyright 2014 - 2017 © taobao.org |