0.9.1 • Published 5 years ago
gulp-atlassian-connect-validator v0.9.1
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.
- Download schema file from App descriptor - Jira Cloud platform Developer.
- Place it anywhere.
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;
Exec Gulp task.