Skip to content

ifrost/starterkit

Repository files navigation

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 / Developer Settings / Personal Access Tokens (select public_repo)
  • Add NPM_API_KEY - authToken from ~/.npmrc
  • Add NPM_EMAIL - your email
  • Select Auto cancel branch builds

Create branches

  • 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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published