Skip to content

Commit

Permalink
🔧 Add bin config
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck committed Jun 8, 2019
1 parent acd0a22 commit 56d7e78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Generates beautiful README files from git config & package.json infos",
"main": "src/index.js",
"bin": {
"readme": "src/index.js"
},
"dependencies": {
"date-fns": "^1.30.1",
"ejs": "^2.6.1",
Expand All @@ -18,7 +21,7 @@
},
"devDependencies": {},
"scripts": {
"lint": "eslint src/**/*",
"lint": "eslint src/**",
"prettier:check": "prettier \"**/*.{js,md,json}\" --list-different",
"test:unit": "echo \"Error: no test specified\" && exit 0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ejs = require('ejs')
const path = require('path')
const inquirer = require('inquirer')
const { negate, isNil } = require('lodash')
const { isNil } = require('lodash')
const getYear = require('date-fns/get_year')
const { getProjectInfos } = require('./utils')

Expand Down
2 changes: 2 additions & 0 deletions src/index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

const yargs = require('yargs')
const generateReadme = require('./cli')

Expand Down

0 comments on commit 56d7e78

Please sign in to comment.