javascript-sdk-boilerplate
javascript-sdk-boilerplate copied to clipboard
A boilerplate code template for creating a generic javascript sdk.
javascript-sdk-boilerplate 
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-boilerplateyo javascript-sdk-boilerplate
2. Getting started
- open the command line and switch into the project folder
npm installsudo npm install -g gulpgulpto see the list of available tasks
3. Essential Gulp Tasks
gulp builddumps a plain and a minified file from all files in the foldersrcinto the folderdist.gulp cleanremoves all files in the folderdist.gulp testruns the tests and linting for all files in the foldersrc.gulp bump-patchincreases the version by0.0.1for the last git commit and pushes the new tag to the remote repository.gulp bump-minorincreases the version by0.1.0for the last git commit and pushes the new tag to the remote repository.gulp bump-majorincreases the version by1.0.0for the last git commit and pushes the new tag to the remote repository.
Web References
Tutorials to build a SDK
- http://msdn.microsoft.com/en-us/library/jj820239.aspx
How others do it:
- https://github.com/apigee/apigee-javascript-sdk/blob/master/apigee.js
- https://github.com/stackmob/stackmob-js-sdk/blob/master/stackmob.js
- https://github.com/gilt/gilt-js-sdk/blob/master/gilt-js-api.js
- https://github.com/BuddyPlatform/Buddy-JS-SDK/blob/master/buddy.js
- https://github.com/EdmundsAPI/sdk-javascript/blob/master/edmunds.api.sdk.js
- https://github.com/justintv/twitch-js-sdk/blob/master/twitch.js
- https://github.com/aws/aws-sdk-js/blob/master/dist/aws-sdk.js
- https://github.com/Instagram/instagram-javascript-sdk/blob/master/ig.js
- https://github.com/splunk/splunk-sdk-javascript/blob/master/client/splunk.js
Final usage examples
- https://keen.io/docs/clients/javascript/usage-guide/ with https://dc8na2hxrj29i.cloudfront.net/code/keen-2.1.0-min.js
- https://developers.facebook.com/docs/javascript/quickstart/v2.0 with https://connect.facebook.net/en_US/sdk.js
- https://parse.com/docs/js_guide with www.parsecdn.com/js/parse-1.2.18.min.js
Helpful sites
- http://blog.ponyfoo.com/2014/01/27/my-first-gulp-adventure
- http://regex101.com/
To support this project, please consider to donate.
This software is published under the MIT-License. See 'license' for more information.