rollup-plugin-swagger-jsdoc
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
"use strict";var e=require("swagger-jsdoc"),r=require("fs");module.exports=function(t){return{name:"swagger-jsdoc",buildStart:function(){if(!t.definition)throw new Error('You need to provide "definition"');if(!t.apis)throw new Error('You need to provide "apis"');if(!t.output)throw new Error('You need to provide "output"')},generateBundle:function(){console.log("Yahoo from "+__filename);var o=t.output;delete t.output;var i=!1;t.pretty&&(i=t.pretty,delete t.pretty);var n=e(t),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);r.writeFileSync(o,u)}}}; | ||
"use strict";var e=require("swagger-jsdoc"),t=require("fs");module.exports=function(r){return{name:"swagger-jsdoc",buildStart:function(){if(!r.definition)throw new Error('You need to provide "definition"');if(!r.apis)throw new Error('You need to provide "apis"');if(!r.output)throw new Error('You need to provide "output"')},generateBundle:function(){var o=r.output;delete r.output;var i=!1;r.pretty&&(i=r.pretty,delete r.pretty);var n=e(r),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);t.writeFileSync(o,u)}}}; |
@@ -1,1 +0,1 @@ | ||
var e=require("swagger-jsdoc"),r=require("fs");function t(t){return{name:"swagger-jsdoc",buildStart:function(){if(!t.definition)throw new Error('You need to provide "definition"');if(!t.apis)throw new Error('You need to provide "apis"');if(!t.output)throw new Error('You need to provide "output"')},generateBundle:function(){console.log("Yahoo from "+__filename);var o=t.output;delete t.output;var i=!1;t.pretty&&(i=t.pretty,delete t.pretty);var n=e(t),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);r.writeFileSync(o,u)}}}export default t; | ||
var e=require("swagger-jsdoc"),t=require("fs");function r(r){return{name:"swagger-jsdoc",buildStart:function(){if(!r.definition)throw new Error('You need to provide "definition"');if(!r.apis)throw new Error('You need to provide "apis"');if(!r.output)throw new Error('You need to provide "output"')},generateBundle:function(){var o=r.output;delete r.output;var i=!1;r.pretty&&(i=r.pretty,delete r.pretty);var n=e(r),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);t.writeFileSync(o,u)}}}export default r; |
{ | ||
"name": "rollup-plugin-swagger-jsdoc", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Rollup plugin to generate a swagger.json file from JSDoc comments.", | ||
@@ -8,2 +8,3 @@ "main": "build/rollup-plugin-swagger-jsdoc.cjs.js", | ||
"scripts": { | ||
"test": "", | ||
"build": "rollup -c" | ||
@@ -10,0 +11,0 @@ }, |
# rollup-plugin-swagger-jsdoc | ||
[![Build Status](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main)](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main) | ||
[![Build Status](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main)](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc) | ||
@@ -5,0 +5,0 @@ Rollup plugin to generate a *swagger.json* file from ``JSDoc`` comments using **swagger-jsdoc** library. |
@@ -19,3 +19,2 @@ const swaggerJSDoc = require('swagger-jsdoc'); | ||
generateBundle() { | ||
console.log(`Yahoo from ${__filename}`); | ||
const output = options.output; | ||
@@ -22,0 +21,0 @@ delete options.output; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36496
775
2