diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..6f91bd1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,29 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-component-push +// This file is licensed under the Artistic License 2.0. +// License text available at https://opensource.org/licenses/Artistic-2.0 + +'use strict'; + +module.exports = function(grunt) { + grunt.initConfig({ + jsdoc: { + dist: { + src: ['lib/*.js', 'models/installation.js', 'models/notification.js'], + options: { + destination: 'doc', + }, + }, + }, + watch: { + files: ['lib/*.js', 'models/*.js'], + tasks: ['jsdoc'], + }, + }); + + grunt.loadNpmTasks('grunt-jsdoc'); + grunt.loadNpmTasks('grunt-contrib-watch'); + + // Default task(s). + grunt.registerTask('default', ['jsdoc']); +}; diff --git a/package.json b/package.json index 8dba21d..86332ab 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,9 @@ "deep-extend": "^0.4.0", "eslint": "^2.13.1", "eslint-config-loopback": "^4.0.0", - "loopback": "^3.0.0", + "loopback": "^2.18.0", "loopback-connector-mongodb": "^1.8.0", + "loopback-datasource-juggler": "^2.29.0", "mocha": "^2.2.0", "should": "^6.0.0", "sinon": "^1.14.0"