@sifrr/dev
All you need to develop packages/apps.
Last updated 21 days ago by aadityataparia .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sifrr/dev 
SYNC missed versions from official npm registry.

sifrr-dev ยท npm version

GitHub license CircleCI Coverage Status Dependabot badge

Development tools for sifrr packages, webapps

Size

Type Size
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.

Current Tags

  • 0.0.40                                ...           latest (21 days ago)

42 Versions

  • 0.0.40                                ...           21 days ago
  • 0.0.39                                ...           21 days ago
  • 0.0.38                                ...           a month ago
  • 0.0.37                                ...           a month ago
  • 0.0.36                                ...           2 months ago
  • 0.0.35                                ...           2 months ago
  • 0.0.34                                ...           2 months ago
  • 0.0.33                                ...           2 months ago
  • 0.0.32                                ...           2 months ago
  • 0.0.31                                ...           3 months ago
  • 0.0.30                                ...           3 months ago
  • 0.0.29                                ...           3 months ago
  • 0.0.28                                ...           3 months ago
  • 0.0.27                                ...           4 months ago
  • 0.0.26                                ...           4 months ago
  • 0.0.25                                ...           4 months ago
  • 0.0.24                                ...           4 months ago
  • 0.0.23                                ...           5 months ago
  • 0.0.22                                ...           5 months ago
  • 0.0.21                                ...           5 months ago
  • 0.0.20                                ...           5 months ago
  • 0.0.19                                ...           5 months ago
  • 0.0.18                                ...           5 months ago
  • 0.0.17                                ...           5 months ago
  • 0.0.16                                ...           5 months ago
  • 0.0.15                                ...           5 months ago
  • 0.0.14                                ...           5 months ago
  • 0.0.13                                ...           5 months ago
  • 0.0.12 [deprecated]           ...           5 months ago
  • 0.0.11                                ...           6 months ago
  • 0.0.10                                ...           6 months ago
  • 0.0.9                                ...           6 months ago
  • 0.0.8                                ...           6 months ago
  • 0.0.7                                ...           6 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
  • 0.0.1-rc3                                ...           6 months ago
  • 0.0.1-rc2                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 42
Last Month 109
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |