Socket
Socket
Sign inDemoInstall

@sifrr/dev

Package Overview
Dependencies
879
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sifrr/dev

All you need to develop packages/apps.


Version published
Maintainers
1
Created

Changelog

Source

0.0.44 (2020-01-23)

Bug Fixes

  • istanbul versions, release 0.0.44 (b601542)

Readme

Source

sifrr-dev · npm version

GitHub license CircleCI Coverage Status Dependabot badge

Development tools for sifrr packages, webapps

Size

TypeSize
Normal (dist/sifrr.dev.cjs.js)Normal

Tools

  • getRollupConfig Rollup configs to bundle JavaScript/TypeScript for node packages, es modules and browser packs. Supports node syntax as well as es module syntax, and TypeScript.
  • generateChangelog Generate Changelog during release
  • loadDir Load directory recursively
  • eslintrc ESLint config and prettier
  • deepMerge Deep Merge Objects
  • checkTag check if a tag exists on github
  • exec async execute a shell command with stdout and stderr
  • gitAddCommitPush run command > git add files > git commit > git push
  • runTests Run a full fledged test suite using mocha, chai, sinon, puppeteer, etc. Supports node syntax as well as es module syntax.

Other packages

Usage

Husky

Just add .huskyrc and you are good to go.

ESlint

Add this to your eslintrc config

{
  extends: ['sifrr']
}

and add pre-commit hook in your .huskyrc

{
  "hooks": {
    "pre-commit": "yarn eslint --fix \"src/**/*.js\" && git add -A"
  }
}

sifrr eslint config extends prettier config and plugin, you can add prettier.config.js if you want to change default options for prettier.

commitlint

add commit-msg hook in your .huskyrc

{
  "hooks": {
    "commit-msg": "yarn commitlint -e $HUSKY_GIT_PARAMS"
  }
}

add commitlint.config.js to your root folder

module.exports = {
  extends: ['@commitlint/config-conventional']
};

Upload coverage to Coveralls

set COVERALLS_REPO_TOKEN environment variable, run tests with lcov reporter, Upload with this command:

cat ./coverage/lcov.info | yarn coveralls

Eslint

Add tihs to your .eslintrc.js

module.exports = {
  extends: ['@sifrr']
};

Prettier

Add prettier.config.js, and it will be picked by eslint. Add prettier extension in code editor you use for best use.

Keywords

FAQs

Last updated on 23 Jan 2020

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