Bootstraps an npm package to follow kindred's recommendations for testing, demos, etc. to keep everything consistent, while still easy to set up.
These updates are (mostly) non-destructive, so you can run a bootstrap multiple times to add tests/demos or change the name/description of your package.
Firstly, install kindred-bootstrap-package using npm:
npm install -g kindred-bootstrap-packageOnce installed, you can run this in your package's root directory to start the process:
kindred-bootstrap-packageYou can use this package programatically too!
var bootstrap = require('kindred-bootstrap-package')
bootstrap(process.cwd(), {
packageName: 'hello-world',
packageDescription: 'Just a test...',
hasTest: false,
hasDemo: false
}, function (err) {
if (err) throw err
console.log('all done!')
})Bootstraps the package at directory. The following parameters are all required:
params.packageName: the name of your package.params.packageDescription: your package's description.params.hasTest: set totrueto setup tape and CircleCI config.params.hasDemo: set totrueto setup your package for a simplegh-pagesdemo.
The done(err) callback is called when complete.
MIT. See LICENSE.md for details.