coins-validate
Advanced tools
Comparing version 1.0.1 to 1.1.0
26
index.js
var validate = require('git-validate'); | ||
console.log('installing coins-validate hooks into your project...'); | ||
var validateUtils = require('git-validate/lib/utils'); | ||
var exec = require('child_process').exec; | ||
var packages = [ | ||
'gh-pages', | ||
'jsdoc', | ||
'jshint', | ||
'jscs', | ||
]; | ||
console.log('installing coins-validate hooks and scripts into your project...'); | ||
validate.copy('templates/.jshintrc', '.jshintrc'); | ||
@@ -9,5 +17,19 @@ validate.copy('templates/.jscscrc', '.jscsrc'); | ||
validate.installScript('preversion', 'git checkout master && git pull && npm ls'); | ||
validate.installScript('docs', 'jsdoc -d docs -r -R README.md src/ && git add docs/*'); | ||
validate.installScript('deploy-docs', 'gh-pages -d docs'); | ||
validate.installScript('post-publish', 'npm run deploy-docs'); | ||
validate.installScript('publish-patch', 'npm run preversion && npm version patch && git push origin master --tags && npm publish'); | ||
validate.installScript('publish-minor', 'npm run preversion && npm version minor && git push origin master --tags && npm publish'); | ||
validate.installScript('publish-major', 'npm run preversion && npm version major && git push origin master --tags && npm publish'); | ||
validate.installHooks(['pre-commit', 'validate', 'lint', 'test']); | ||
validate.installHooks('pre-commit'); | ||
validate.configureHook('pre-commit', ['validate', 'lint', 'test', 'docs']); | ||
var root = validateUtils.findProjectRoot(); | ||
console.log('installing coins-* ecosystem dep pkgs into your project...'); | ||
var install = exec('npm install --save-dev ' + packages.join(' '), { cwd: root }, function(err, stdout, stderr) { | ||
if (err) { | ||
console.error(err); | ||
return; | ||
} | ||
console.log(stdout); | ||
}); |
{ | ||
"name": "coins-validate", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "configures a package to fall inline with coins standards", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4775
33
1