kindred-bootstrap-package
v1.1.0
Published
Bootstraps an npm package to follow kindred's recommendations for testing, demos, etc.
Downloads
18
Maintainers
Readme
kindred-bootstrap-package
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.
CLI Usage
Firstly, install kindred-bootstrap-package
using npm:
npm install -g kindred-bootstrap-package
Once installed, you can run this in your package's root directory to start the process:
kindred-bootstrap-package
API Usage
You 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!')
})
bootstrap(directory, params, 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 totrue
to setup tape and CircleCI config.params.hasDemo
: set totrue
to setup your package for a simplegh-pages
demo.
The done(err)
callback is called when complete.
License
MIT. See LICENSE.md for details.