Skip to content

A fortune-teller in ES6, for use as an NPM module.

License

Notifications You must be signed in to change notification settings

hillscottc/nostra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPMBuild StatusCoverage Status

Nostra

Generates random-ish fortune-teller text.

Installation

npm install nostra

Usage

var nostra = require('nostra');

var fortune = nostra.generate();

Tests

Components:

ES6 -- Publishing to npm handled by configuring the package.json file

  • See build and prepublish (which calls build) in the scripts 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 the src.
  • See test in the scripts section -- make sure it builds before it runs the tests.

Resources

Notes

About

A fortune-teller in ES6, for use as an NPM module.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published