Skip to content

Commit

Permalink
add clinton (#62)
Browse files Browse the repository at this point in the history
I AM CLINTON. AND I AM DOLE. IT DOES NOT MATTER WHICH ONE OF US YOU CHOOSE SO LONG AS YOU CHOOSE ONE OF US
  • Loading branch information
brekk authored Feb 16, 2018
1 parent 130b830 commit e819b8b
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ custom.js
docs
.DS_Store
lib
node_modules
File renamed without changes.
9 changes: 9 additions & 0 deletions package-scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const germs = require(`germs`)
const pkg = require(`./package.json`)
const utils = require(`nps-utils`)
const allNPS = utils.concurrent.nps

const config = germs.build(pkg.name, {
readme: `documentation readme -s "API" src/*.js`,
Expand All @@ -9,4 +11,11 @@ const config = germs.build(pkg.name, {
}
})

config.scripts.lint.project = `clinton`
config.scripts.lint = Object.assign(
{},
config.scripts.lint,
{script: allNPS(`lint.src`, `lint.jsdoc`, `lint.project`)}
)

module.exports = config
96 changes: 65 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "xtrace",
"version": "0.1.9",
"description": "trace data when composing functions",
"license": "ISC",
"repository": "brekk/xtrace",
"author": "brekk",
"main": "xtrace.js",
"reveal": true,
"scripts": {
"dependencies": "nps dependencies",
"readme": "nps readme",
Expand All @@ -14,42 +16,13 @@
"build": "nps build",
"precommit": "nps precommit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/brekk/xtrace.git"
},
"keywords": [
"trace",
"composition",
"functional composition",
"side effect",
"log"
],
"author": "brekk",
"license": "ISC",
"bugs": {
"url": "https://github.com/brekk/xtrace/issues"
},
"homepage": "https://github.com/brekk/xtrace#readme",
"jest": {
"modulePaths": [
"src"
],
"moduleDirectories": [
"node_modules",
"src"
],
"mapCoverage": true,
"moduleNameMapper": {},
"moduleFileExtensions": [
"js",
"json"
],
"testMatch": [
"<rootDir>/src/*.spec.(jsx|js)",
"<rootDir>/xtrace.integration.spec.js"
]
},
"dependencies": {
"f-utility": "^3.5.5"
},
Expand Down Expand Up @@ -101,5 +74,66 @@
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-progress": "^0.4.0"
}
},
"clinton": {
"inherit": false,
"rules": {
"cli": "error",
"editorconfig": "off",
"filename-case": [
"error",
{
"case": "kebabCase"
}
],
"gulp": [
"error",
"optional"
],
"keywords": "error",
"license": "ISC",
"max-depth": "warn",
"no-callback": "error",
"no-dup-keywords": "error",
"no-empty-keywords": "error",
"no-git-merge-conflict": "error",
"pkg-dependency-order": "error",
"pkg-description": "off",
"pkg-engine": "off",
"pkg-main": "error",
"pkg-name": "error",
"pkg-normalize": "warn",
"pkg-property-order": "error",
"pkg-schema": "error",
"pkg-shorthand-repository": "error",
"pkg-user-order": "error",
"readme": "error",
"test-script": "error",
"use-travis": "off",
"valid-version": "error",
"ava": "off",
"gitignore": "error",
"xo": "off"
}
},
"jest": {
"modulePaths": [
"src"
],
"moduleDirectories": [
"node_modules",
"src"
],
"mapCoverage": true,
"moduleNameMapper": {},
"moduleFileExtensions": [
"js",
"json"
],
"testMatch": [
"<rootDir>/src/*.spec.(jsx|js)",
"<rootDir>/xtrace.integration.spec.js"
]
},
"reveal": true
}
File renamed without changes.

0 comments on commit e819b8b

Please sign in to comment.