diff --git a/README.md b/README.md index ca1c76b..fa3f602 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,6 @@ To remove support for `appveyor` from your project, just `npm run mrm appveyor` npm run mrm appveyor ``` - ### Circle CI Circle CI tasks creates a configuration file `(.circleci/config.yml)` in the root of your project. The tasks depends on the config file `config.json` and requires following key/value pairs. diff --git a/audit/README.md b/audit/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/audit/index.js b/audit/index.js deleted file mode 100644 index 6606063..0000000 --- a/audit/index.js +++ /dev/null @@ -1,41 +0,0 @@ -/* -* @adonisjs/mrm-preset -* -* (c) Harminder Virk -* -* For the full copyright and license information, please view the LICENSE -* file that was distributed with this source code. -*/ - -const { packageJson, install } = require('mrm-core') - -function task () { - const pkgFile = packageJson() - - const auditHook = 'npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html' - - /** - * Add git hook to generate npm audit report - */ - let preCommit = pkgFile.get('husky.hooks.pre-commit') - if (!preCommit) { - preCommit = auditHook - } else if (!preCommit.includes(auditHook)) { - preCommit = `${preCommit} && ${auditHook}` - } - - pkgFile.set('husky.hooks.pre-commit', preCommit) - - /** - * Save the package file - */ - pkgFile.save() - - /** - * Install required dependencies - */ - install(['npm-audit-html']) -} - -task.description = 'Runs "npm audit --production" and saves the audit report inside npm-audit.html file' -module.exports = task diff --git a/config.json b/config.json index 2322398..9ca3928 100644 --- a/config.json +++ b/config.json @@ -7,7 +7,6 @@ "all": [ "appveyor", "circleci", - "audit", "contributing", "editorconfig", "probot",