jae-bradley-npm-package-creator-cli
CLI that creates the starting directory for npm
packages using a template I like
Features
babel
jest
airbnb
eslint
configangular
commit message conventionhusky
git hookssemantic-release
greenkeeper-lockfile
(i.e. useGreenkeeper
)
Files
.babelrc
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
commitlint.config.js
package-lock.json
package.json
Contents
.babelrc
.eslintignore
coverage/*buildnode_modules
.eslintrc
.npmignore
.DS_Store.eslintcachenode_modulesnpm-debug.log.travis.ymlsrc/test/*.test.jscoverage/
.travis.yml
language: node_jscache: directories: - ~/.npmnotifications: email: truenode_js: - '8'before_install: - npm install -g npm@5 - npm install -g greenkeeper-lockfile@1jobs: include: - stage: test script: - npm run compile - npm run lint - npm run test - npm run is-es5 before_script: greenkeeper-lockfile-update after_script: greenkeeper-lockfile-upload - stage: deploy if: branch = master script: npm run travis-deploy-once "npm run semantic-release"
commitlint.config.js
moduleexports = extends: '@commitlint/config-angular' ;
package.json
Dynamically generated using the specified package name, package description, author email address, and GitHub username.
Will look something like
Note: I'm using a specific version of babel-core
(^7.0.0-bridge.0
) because @babel/core
doesn't play well with jest
, right now.
.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
build
.DS_Store