monbro / javascript-sdk-boilerplate

A boilerplate code template for creating a generic javascript sdk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript-sdk-boilerplate Build Status

A boilerplate code template for creating a generic javascript sdk. Check out the demo.

1. Installation

You will need to have nodejs isntalled.

Clone the repository or download the zip. Or you can use the existing yeoman generator:

  • npm install -g generator-javascript-sdk-boilerplate
  • yo javascript-sdk-boilerplate

2. Getting started

  • open the command line and switch into the project folder
  • npm install
  • sudo npm install -g gulp
  • gulp to see the list of available tasks

3. Essential Gulp Tasks

  • gulp build dumps a plain and a minified file from all files in the folder src into the folder dist.
  • gulp clean removes all files in the folder dist.
  • gulp test runs the tests and linting for all files in the folder src.
  • gulp bump-patch increases the version by 0.0.1 for the last git commit and pushes the new tag to the remote repository.
  • gulp bump-minor increases the version by 0.1.0 for the last git commit and pushes the new tag to the remote repository.
  • gulp bump-major increases the version by 1.0.0 for the last git commit and pushes the new tag to the remote repository.

Web References

Tutorials to build a SDK

How others do it:

Final usage examples

Helpful sites

To support this project, please consider to donate.

This software is published under the MIT-License. See 'license' for more information.

About

A boilerplate code template for creating a generic javascript sdk.

License:MIT License


Languages

Language:JavaScript 100.0%