README
Nostra
Generates random-ish fortune-teller text.
Installation
npm install nostra
Usage
var nostra = require('nostra');
var fortune = nostra.generate();
Tests
Components:
- Mocha JavaScript test framework.
- Travis CI for continuous integration.
- Istanbul and Coveralls for code coverage.
ES6 -- Publishing to npm handled by configuring the package.json file
- See
buildandprepublish(which calls build) in thescriptssection. - 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 - In
package.json,mainpoints to the file at './dist/index.js'
ES6 -- Testing
- The test file should call the files in the
distdirectory, not thesrc. - See
testin thescriptssection -- make sure it builds before it runs the tests.
Resources
Notes
- Adapted from Michael Sproul's python Horoscope Generator.
