Skip to content

Commit

Permalink
fix(tweaks): update readme, add keywords, default linting to .
Browse files Browse the repository at this point in the history
TAG: latest
  • Loading branch information
tunnckoCore committed Aug 10, 2017
1 parent e496f9c commit be8f5da
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Always-ignore dirs #
# ####################
tasks/precommit.js
_gh_pages
node_modules
jspm_packages
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hela [![npm version][npmv-img]][npmv-url] [![github release][github-release-img]][github-release-url] [![mit License][license-img]][license-url] [![NPM Downloads Weekly][downloads-weekly-img]][downloads-weekly-url] [![NPM Downloads Total][downloads-total-img]][downloads-total-url]

> Task runner for @tunnckoCore projects with optinionated tasks for linting, testing, releaseing & hooks
> Task runner based on [execa][]. Includes few predefined tasks for linting, testing & releasing
You might also be interested in [koa-better-router](https://github.com/tunnckocore/koa-better-router#readme).

Expand Down Expand Up @@ -125,4 +125,5 @@ Project scaffolded using [charlike-cli][].
[nodeversion-url]: https://nodejs.org/en/download
[nodeversion-img]: https://img.shields.io/node/v/hela.svg

[charlike-cli]: https://github.com/tunnckoCore/charlike-cli
[charlike-cli]: https://github.com/tunnckoCore/charlike-cli
[execa]: https://github.com/sindresorhus/execa
41 changes: 33 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "hela",
"version": "0.0.0-semantic-release",
"description": "Task runner based on `execa`. Includes few predefined tasks for linting (ESLint), testing & releasing (semantic-release).",
"description": "Task runner based on [execa][]. Includes few predefined tasks for linting, testing & releasing",
"repository": "tunnckoCore/hela",
"homepage": "https://github.com/tunnckoCore/hela",
"author": "Charlike Mike Reagent <@tunnckoCore> (https://i.am.charlike.online)",
"nspId": "6e5fb0cd-6807-4709-b6f2-37f194887691",
"main": "./index.js",
"license": "MIT",
"scripts": {
"lint": "./cli.js lint . -c .eslintrc.json",
"lint": "./cli.js lint -c .eslintrc.json",
"test": "./cli.js test node ./test.js",
"precommit": "./cli.js precommit",
"commit": "./cli.js commit",
Expand Down Expand Up @@ -43,13 +43,35 @@
"eslint-config-standard-tunnckocore": "0.1.0",
"husky": "0.14.3"
},
"keywords": [],
"keywords": [
"charlike",
"cli",
"command line",
"es2015",
"eslint",
"eslint fix",
"hela",
"hooks",
"lint",
"precommit",
"prettier",
"publish",
"release",
"runner",
"semantic",
"semantic release",
"standard",
"task",
"task runner",
"tasks",
"testing"
],
"nyc": {
"check-coverage": true,
"statements": 50,
"functions": 20,
"branches": 50,
"lines": 50
"statements": 0,
"functions": 0,
"branches": 0,
"lines": 0
},
"renovate": {
"enabled": true,
Expand Down Expand Up @@ -110,7 +132,10 @@
],
"highlight": "koa-better-router"
},
"reflinks": [],
"reflinks": [
"charlike-cli",
"execa"
],
"lint": {
"reflinks": true
}
Expand Down
3 changes: 3 additions & 0 deletions tasks/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@

module.exports = ({ adds, argv, shell }) => {
console.log('Running `lint` command...')

adds = adds || '.'

shell(`eslint ${adds} -c ${argv.config} --format ${argv.reporter} --fix`)
}
2 changes: 2 additions & 0 deletions tasks/precommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Released under the MIT license.
*/

const f = require('fs')

module.exports = ({ shell }) => {
console.log('Running `precommit` command...')
shell(['npm run lint', 'npm test', 'git add --all'])
Expand Down

0 comments on commit be8f5da

Please sign in to comment.