Comparing version 2.3.0 to 2.4.0
@@ -0,1 +1,6 @@ | ||
2.4.0 - December 9, 2015 | ||
- Update third party dependencies | ||
- Use AirBnb ESLint package | ||
- Fixed linter errors | ||
2.3.0 - July 16, 2015 | ||
@@ -2,0 +7,0 @@ - Update third party dependencies |
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
@@ -2,0 +4,0 @@ |
21
index.js
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
var path = require('path'); | ||
var raml2obj = require('raml2obj'); | ||
@@ -12,7 +11,2 @@ var pjson = require('./package.json'); | ||
exports = module.exports = { | ||
getDefaultConfig: getDefaultConfig, | ||
render: render | ||
}; | ||
/* | ||
@@ -25,11 +19,11 @@ The config object can contain the following keys and values: | ||
function render(source, config) { | ||
var env = nunjucks.configure(config.templatesPath, { autoescape: false }); | ||
config = config || {}; | ||
config.raml2MdVersion = pjson.version; | ||
var env = nunjucks.configure(config.templatesPath, {watch: false}); | ||
return raml2obj.parse(source).then(function(ramlObj) { | ||
return raml2obj.parse(source).then(function (ramlObj) { | ||
ramlObj.config = config; | ||
return Q.fcall(function() { | ||
return Q.fcall(function () { | ||
var result = env.render(config.template, ramlObj); | ||
@@ -57,3 +51,3 @@ if (config.processOutput) { | ||
templatesPath: templatesPath, | ||
processOutput: function(data) { | ||
processOutput: function (data) { | ||
return data.replace(/\n{3,}/g, '\n\n'); | ||
@@ -68,1 +62,6 @@ } | ||
} | ||
module.exports = { | ||
getDefaultConfig: getDefaultConfig, | ||
render: render | ||
}; |
{ | ||
"name": "raml2md", | ||
"description": "RAML to Markdown documentation generator", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"author": { | ||
@@ -10,7 +10,7 @@ "name": "Kevin Renskers", | ||
"bugs": { | ||
"url": "https://github.com/kevinrenskers/raml2md/issues" | ||
"url": "https://github.com/raml2html/raml2md/issues" | ||
}, | ||
"dependencies": { | ||
"commander": "2.8.x", | ||
"nunjucks": "1.3.x", | ||
"commander": "2.9.x", | ||
"nunjucks": "2.2.x", | ||
"raml2obj": "2.2.x", | ||
@@ -20,5 +20,6 @@ "q": "1.4.x" | ||
"devDependencies": { | ||
"eslint": "0.24.x" | ||
"eslint": "1.10.x", | ||
"eslint-config-airbnb": "^2.0.0" | ||
}, | ||
"homepage": "https://github.com/kevinrenskers/raml2md", | ||
"homepage": "https://github.com/raml2html/raml2md", | ||
"keywords": [ | ||
@@ -31,7 +32,7 @@ "RAML" | ||
"type": "git", | ||
"url": "git://github.com/kevinrenskers/raml2md.git" | ||
"url": "git://github.com/raml2html/raml2md.git" | ||
}, | ||
"preferGlobal": "true", | ||
"scripts": { | ||
"lint": "eslint ./" | ||
"lint": "eslint index.js" | ||
}, | ||
@@ -38,0 +39,0 @@ "bin": { |
@@ -7,3 +7,3 @@ # RAML to Markdown | ||
A simple RAML to Markdown documentation generator, written for Node.js. | ||
Check [raml2html](https://github.com/kevinrenskers/raml2html) for a RAML to HTML generator. | ||
Check [raml2html](https://github.com/raml2html/raml2html) for a RAML to HTML generator. | ||
@@ -76,3 +76,3 @@ | ||
A big thank you goes out to everyone who helped with the project, the [contributors](https://github.com/kevinrenskers/raml2md/graphs/contributors) | ||
A big thank you goes out to everyone who helped with the project, the [contributors](https://github.com/raml2html/raml2md/graphs/contributors) | ||
and everyone who took the time to report issues and give feedback. | ||
@@ -79,0 +79,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
22458
2
+ Addedanymatch@1.3.2(transitive)
+ Addedarr-diff@2.0.04.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-unique@0.2.10.3.2(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedasync-each@1.0.6(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbinary-extensions@1.13.1(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedbraces@1.8.52.3.2(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedchokidar@1.7.0(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcommander@2.9.0(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addedexpand-brackets@0.1.52.1.4(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedextglob@0.3.22.0.4(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.44.0.0(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedfsevents@1.2.13(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-binary-path@1.0.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-number@2.1.03.0.04.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmicromatch@2.3.113.1.10(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addedms@2.0.0(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addednunjucks@2.2.0(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedreaddirp@2.2.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedret@0.1.15(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
- Removedasync-each@0.1.6(transitive)
- Removedchokidar@0.12.6(transitive)
- Removedcommander@2.8.1(transitive)
- Removedfsevents@0.3.8(transitive)
- Removedgraceful-fs@2.0.3(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.14(transitive)
- Removednunjucks@1.3.4(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedreaddirp@1.3.0(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
Updatedcommander@2.9.x
Updatednunjucks@2.2.x