Last active
October 27, 2017 06:01
-
-
Save brito/6fb681a7445207ff45c6c6a99042fd01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const USER = process.env.USER | |
, NAMESPACE = `@${USER}` | |
, NAME = encodeURIComponent(require('path') | |
.basename(process.cwd()) | |
.trim() | |
.toLowerCase() | |
.replace(/^_|\./, '') | |
//npmjs.com/package/validate-npm-package-name | |
// .replace(/[^~)('!*]/g, '') | |
.replace(/node|js/, '') | |
) | |
, GITHUB = `https://github.com/${USER}/${NAME}` | |
module.exports = { | |
"name": `${NAMESPACE}/${NAME}`, | |
"version": "1.0.0", | |
"private": true, | |
"description": prompt('What is the outcome or end result of this tool, phrased as a simple command'), | |
"keywords": prompt('What are some (comma separated) keywords that would make it very easy to find'), | |
"homepage": `${GITHUB}#readme`, | |
"repository": { | |
"type": "git", | |
"url": `git+${GITHUB}.git` | |
}, | |
"bugs": { "url": `${GITHUB}/issues` }, | |
"license": "ISC", | |
"scripts": { | |
"index": "babel-node index.js", | |
// not configured | |
"test": "mocha --compilers js:babel-register", | |
"test:watch": "npm run test -- --watch" | |
}, | |
"devDependencies": { | |
"babel-cli": "6.26.0", | |
"babel-preset-env": "1.6.0", | |
"babel-preset-stage-0": "6.24.1" | |
}, | |
"dependencies": { | |
"dotenv": "4.0.0"/*, | |
"google-auth-library": "0.11.0", | |
"googleapis": "22.2.0", | |
"pg": "7.3.0" | |
*/ | |
} | |
} | |
//docs.npmjs.com/files/package.json | |
//docs.npmjs.com/getting-started/using-a-package.json |
Author
brito
commented
Oct 27, 2017
•
- see Customizing the init process (npmjs)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment