Generates random-ish fortune-teller text.
npm install nostra
var nostra = require('nostra'); var fortune = nostra.generate();
- Travis CI for continuous integration.
- Istanbul and Coveralls for code coverage.
ES6 -- Publishing to npm handled by configuring the package.json file
prepublish(which calls build) in the
- The .npmignore file contains the
srcdir -- it doesn't get published to npm.
- The .gitignore file contains the
distdir -- it doesn't get saved to git
mainpoints to the file at './dist/index.js'
ES6 -- Testing
- The test file should call the files in the
distdirectory, not the
scriptssection -- make sure it builds before it runs the tests.
- Adapted from Michael Sproul's python Horoscope Generator.