charlike-cli
Advanced tools
Comparing version 0.2.5 to 0.3.0
12
cli.js
@@ -12,5 +12,7 @@ #!/usr/bin/env node | ||
const fs = require('fs') | ||
const pkg = require('./package.json') | ||
const charlike = require('charlike') | ||
const username = require('git-user-name') | ||
const updateNotifier = require('update-notifier') | ||
const cli = require('minimist')(process.argv.slice(2), { | ||
@@ -30,2 +32,10 @@ alias: { | ||
const getCharlikeVersion = () => { | ||
const filepath = require.resolve('charlike/package.json') | ||
const charlikePkg = JSON.parse(fs.readFileSync(filepath, 'utf-8')) | ||
return charlikePkg.version | ||
} | ||
updateNotifier({ pkg: pkg }).notify() | ||
process.title = pkg.bin ? Object.keys(pkg.bin)[0] : pkg.name | ||
@@ -42,2 +52,3 @@ | ||
(${pkg.name} v${pkg.version}) | ||
(charlike v${getCharlikeVersion()}) | ||
@@ -73,2 +84,3 @@ Usage | ||
console.log(`${pkg.name} v${pkg.version}`) | ||
console.log(`charlike v${getCharlikeVersion()}`) | ||
process.exit(0) // eslint-disable-line no-process-exit | ||
@@ -75,0 +87,0 @@ } |
{ | ||
"name": "charlike-cli", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"description": "Command line interface for the [charlike][] project scaffolder.", | ||
"repository": "tunnckoCore/charlike-cli", | ||
"author": "Charlike Mike Reagent <@tunnckoCore> (http://i.am.charlike.online)", | ||
"precommit.silent": true, | ||
"main": "cli.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "standard --verbose", | ||
"pretest": "npm run lint", | ||
"test": "npm run coverage", | ||
"posttest": "npm run lint:coverage", | ||
"coverage": "nyc node test.js", | ||
"lint:coverage": "nyc check-coverage --lines 0 --branches 0 --statements 0 --functions 0", | ||
"report-coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"prerelease": "npm test", | ||
"release": "standard-version --sign --no-verify", | ||
"precommit": "git add --all", | ||
"commit": "git-cz" | ||
"deps": "dependency-check . --missing", | ||
"secure": "nsp check", | ||
"lint": "eslint --fix ./*.js", | ||
"test": "nyc --reporter lcov node test.js", | ||
"report": "nyc report", | ||
"git": "npm-run-all --silent -s git:*", | ||
"git:add": "git add --all", | ||
"git:cz": "simple-commit-message", | ||
"git:push": "git push", | ||
"commit": "npm-run-all --silent -s deps secure lint test git", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"setup": "semantic-release-cli setup" | ||
}, | ||
"dependencies": { | ||
"charlike": "*", | ||
"git-user-name": "^1.2.0", | ||
"minimist": "^1.2.0" | ||
"git-user-name": "1.2.0", | ||
"minimist": "1.2.0", | ||
"update-notifier": "2.2.0" | ||
}, | ||
"devDependencies": { | ||
"commitizen": "^2.8.6", | ||
"coveralls": "^2.11.15", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"mukla": "^0.4.8", | ||
"nyc": "^10.0.0", | ||
"pre-commit": "^1.2.0", | ||
"standard": "^8.6.0", | ||
"standard-version": "^4.0.0" | ||
"dependency-check": "2.9.1", | ||
"eslint": "4.2.0", | ||
"github-post-release": "1.7.2", | ||
"mukla": "0.4.9", | ||
"npm-run-all": "4.0.2", | ||
"nsp": "2.6.3", | ||
"nyc": "11.1.0", | ||
"pre-commit": "1.2.2", | ||
"semantic-release": "^6.3.6", | ||
"simple-commit-message": "3.2.0", | ||
"standard": "10.0.2" | ||
}, | ||
@@ -42,7 +46,2 @@ "files": [ | ||
"keywords": [], | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"verb": { | ||
@@ -91,4 +90,24 @@ "run": true, | ||
"node": ">=4", | ||
"npm": ">=2" | ||
"npm": ">=3" | ||
}, | ||
"nyc": { | ||
"check-coverage": true, | ||
"statements": 0, | ||
"functions": 0, | ||
"branches": 0, | ||
"lines": 0 | ||
}, | ||
"release": { | ||
"analyzeCommits": "simple-commit-message", | ||
"generateNotes": "github-post-release" | ||
}, | ||
"pre-commit": { | ||
"silent": true, | ||
"run": [ | ||
"deps", | ||
"secure", | ||
"lint", | ||
"test" | ||
] | ||
} | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
15363
88
4
11
2
+ Addedupdate-notifier@2.2.0
+ Addedansi-align@2.0.0(transitive)
+ Addedansi-regex@2.1.13.0.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedboxen@1.3.0(transitive)
+ Addedcamelcase@4.1.0(transitive)
+ Addedcapture-stack-trace@1.0.2(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedcli-boxes@1.0.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconfigstore@3.1.5(transitive)
+ Addedcreate-error-class@3.0.2(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addedcrypto-random-string@1.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddot-prop@4.2.1(transitive)
+ Addedduplexer3@0.1.5(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexeca@0.7.0(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedgit-user-name@1.2.0(transitive)
+ Addedgot@6.7.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedimport-lazy@2.1.0(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedis-fullwidth-code-point@2.0.0(transitive)
+ Addedis-npm@1.0.0(transitive)
+ Addedis-obj@1.0.1(transitive)
+ Addedis-redirect@1.0.0(transitive)
+ Addedis-retry-allowed@1.2.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlatest-version@3.1.0(transitive)
+ Addedlowercase-keys@1.0.1(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmake-dir@1.3.0(transitive)
+ Addedminimist@1.2.0(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedpackage-json@4.0.1(transitive)
+ Addedparse-git-config@0.4.3(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedprepend-http@1.0.4(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedregistry-auth-token@3.4.0(transitive)
+ Addedregistry-url@3.1.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsemver-diff@2.1.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@2.1.1(transitive)
+ Addedstrip-ansi@3.0.14.0.0(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@2.0.05.5.0(transitive)
+ Addedterm-size@1.2.0(transitive)
+ Addedtimed-out@4.0.1(transitive)
+ Addedunique-string@1.0.0(transitive)
+ Addedunzip-response@2.0.1(transitive)
+ Addedupdate-notifier@2.2.0(transitive)
+ Addedurl-parse-lax@1.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwidest-line@2.0.1(transitive)
+ Addedwrite-file-atomic@2.4.3(transitive)
+ Addedxdg-basedir@3.0.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedgit-user-name@1.2.1(transitive)
- Removedminimist@1.2.8(transitive)
Updatedgit-user-name@1.2.0
Updatedminimist@1.2.0