starterkit

0.19.1 • Public • Published

starterkit

npm version Build Status codecov Known Vulnerabilities Codacy Badge Greenkeeper badge

Starter kit includes:

  • Node app + webpack (dist/starterkit.js)
  • Test suite with mocha/chai/sinon
  • Code coverage generated with istanbul
  • TravisCI config
  • ESLint config
  • JSDoc config
  • Build & publish npm-scripts
  • README.md with badges
  • scripts/
    • changelog.js - generates changes since last tag
    • version.js - update and tags current version

Installation:

> mkdir my-project
> cd my-project
> npm init
> npm install -g starterkit
> starterkit-install
> npm install

Configure Travis CI

  • Add GITHUB_API_KEY - GitHub / Profile / Settings / Personal Access Tokens (select public_repo)
  • Add NPM_API_KEY - authToken from ~/.npmrc
  • Add NPM_EMAIL - your email
  • Select Auto cancel branch builds
  • Select General section:
    • Build only if .travis.yml is present
    • Build branch updates
    • Build pull request updates

Create branches

  • release
  • gh-pages

Add project to:

NPM script commands

  • eslint - runs linting with esliint
  • doc - generates documentation in docs/code
  • build - creates browser build
  • test - runs tests
  • coverage - generates test coverage report
  • codecov - publishes coverage report (part of travisCI config, see .travis.yml)
  • version - releases new version (runs tests, generates changelog, builds the project, adds changes to git and tags it)

Readme

Keywords

none

Package Sidebar

Install

npm i starterkit

Weekly Downloads

8

Version

0.19.1

License

MIT

Last publish

Collaborators

  • ifrost