Skip to content

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarmorrison committed Jul 8, 2018
1 parent 1556372 commit 848f398
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
const chalk = require('chalk');
const dir = process.cwd()+'/package.json';
let packageJSON;

try {
packageJSON = require(dir);
} catch(e) {
console.error('no package.json');
return false;
}

let {scripts} = packageJSON;
console.log('\n');
let { scripts } = packageJSON;

Object.keys(scripts).forEach(key => {
console.log(chalk.black.bgGreen.bold(' '+key+': ')+chalk.inverse(' '+scripts[key]+' \n'));
});
56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 848f398

Please sign in to comment.