0.9.1 • Published 5 years ago

gulp-atlassian-connect-validator v0.9.1

Weekly downloads
8
License
-
Repository
github
Last release
5 years ago

gulp-atlassian-connect-validator

About

gulp-atlassian-connect-validator is plugin to validate atlassian-connect.json in Gulp.

Installation

To install, run npm install command.

npm install gulp-atlassian-connect-validator

Usage

The usage is as follows.

  1. Download schema file from App descriptor - Jira Cloud platform Developer.
  2. Place it anywhere.
  3. Write the task in gulpfile.js as follows.

    const atlassianConnectValidator = require("gulp-atlassian-connect-validator");
    const descriptor = require("<path to directory>/atlassian-connect.json");
    const schema = require("<path to directory>/<Schema file >");
    
    function atlassianConnectJsonValidate(cb) {
      atlassianConnectValidator(descriptor, schema);
      cb();
    }
    
    exports.default = atlassianConnectJsonValidate;
  4. Exec Gulp task.