Package Exports
- nostra
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nostra) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
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'
ES6 -- Testing
- 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.
Resources
Notes
- Adapted from Michael Sproul's python Horoscope Generator.