Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coins-validate

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coins-validate - npm Package Compare versions

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);
});

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc