New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@valueadd/ci

Package Overview
Dependencies
Maintainers
9
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valueadd/ci

CI scripts

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

CI Scripts

Installation

npm install @valueadd/ci --save-optional

Commands and usage

print-version

Print version based on package.json and git commit hash.


validate-branch <branch>

Check if branch is correctly named


validate-nx-tags

Check if all nx tags are valid.


validate-commit <branch>

Check if commit messages are correctly formatted.


prettier-check <files>

Check with prettier if files are correctly formatted.


build-affected [options]

Build affected apps.

Options:
--base <base> - base commit or branch for finding affected apps

--buildFlags <buildFlags> - build flags eg. --aot --build-optimizer=false (default: "--aot --build-optimizer=false")

--head <head> - head commit or branch for finding affected apps

--nodeFlags <nodeFlags> - nodejs flags eg. --max-old-space-size=6144 (default: "")

--npmCommands <npmFlags> - additional npm commands to run before build separated with && eg. build:ci:prepare && build:ci:notify (default: "")

Configuration

Create ci.json5 file in repository with the following content:

{
  branch: {
    types: ['feature', 'bugfix', 'hotfix', 'release', 'refactor'], // types of branches
    pattern: '(.*)' // RegExp that overrides "types" (types are ignored)
  },
  commit: {
    maxLength: 100, // max commit length
    types: [
      // available types in commits
      'build',
      'ci',
      'docs',
      'feat',
      'fix',
      'perf',
      'refactor',
      'release',
      'style',
      'test'
    ],
    scopes: ['test', 'report', 'document'] // available scopes in commits
  },
  prettier: {
    extensionsToCheck: ['.json', '.ts', '.js', '.html', '.css', '.scss'] // extensions to check with prettier
  }
}

FAQs

Package last updated on 30 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc