Generates random-ish fortune-teller text.
npm install nostra
var nostra = require('nostra');
var fortune = nostra.generate();
Components:
- Mocha JavaScript test framework.
- Travis CI for continuous integration.
- Istanbul and Coveralls for code coverage.
- See
build
andprepublish
(which calls build) in thescripts
section. - The .npmignore file contains the
src
dir -- it doesn't get published to npm. - The .gitignore file contains the
dist
dir -- it doesn't get saved to git - In
package.json
,main
points to the file at './dist/index.js'
- The test file should call the files in the
dist
directory, not thesrc
. - See
test
in thescripts
section -- make sure it builds before it runs the tests.
- Adapted from Michael Sproul's python Horoscope Generator.