Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

A blue print for node projects published via npm

License

Notifications You must be signed in to change notification settings

bpmn-io/boilerplate-node-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bpmn-io npm project boilerplate

This is a blueprint you can use to create your own projects.

Placeholders

After copying the template replace the following placeholders in the package.json file:

  • <AUTHOR_NAME>: your name
  • <AUTHOR_GITHUB_NAME>: your name on GitHub
  • <PACKAGE_NAME>: the name of the project (for npm package and repository)
  • <PACKAGE_DESCRIPTION>: a short description of the package

Project structure

The following shows the general project structure

├─docs
│ └─api
├─lib
│ └─foo.js
├─resources
├─test
│ ├─fixtures
│ └─spec
│   └─fooSpec.js
├─tmp
│ └─reports
├─Gruntfile.js
├─index.js
└─package.json

A note on the structure:

  • docs contains documentation relevant for developers or users

    • docs/api gets generated from the project sources
  • lib contains the project sources

  • resources can contain non-js sources such as JSON config files or images

  • test contains all test related data

    • test/spec and sub folders hold test cases with the convention :nameSpec.js
    • test/fixtures hold test data
  • index.js is the main entry point for the module

What is inside

The boilerplate uses the following components:

Build tasks

The contained Gruntfile.js configures the following build tasks:

default (test, lint, generate docs)

Performs all neccessary tasks in the correct order.

grunt

auto-test

Watches for library or test changes and re-runs the test suite automatically.

grunt auto-test

release

Releases a new version of the library (on npm and GitHub).

grunt release:minor
grunt release:patch
grunt release:major

License

MIT

About

A blue print for node projects published via npm

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published