Comparing version 0.4.3 to 0.4.4
# apiDoc Changelog | ||
#### 0.4.4 | ||
Preserve other files when copying template files to the destination output dir. | ||
#### 0.4.3 | ||
@@ -4,0 +7,0 @@ Added a short-circuit check. (Mattias Festin https://github.com/apidoc/apidoc/issues/41) |
var _ = require("underscore"); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
@@ -7,3 +6,2 @@ var semver = require("semver"); | ||
var path = require("path"); | ||
var wrench = require("wrench"); | ||
var Parser = require("./parser"); | ||
@@ -14,2 +12,3 @@ var Worker = require("./worker"); | ||
var colors = require("colors"); | ||
var fs = require("fs-extra"); | ||
@@ -248,6 +247,6 @@ // Options | ||
app.debug("create dir: " + options.dest); | ||
if( ! options.simulate) wrench.mkdirSyncRecursive(options.dest); | ||
if( ! options.simulate) fs.mkdirsSync(options.dest); | ||
app.debug("copy template " + options.template + " to: " + options.dest); | ||
if( ! options.simulate) wrench.copyDirSyncRecursive(options.template, options.dest, { forceDelete: true }); | ||
if( ! options.simulate) fs.copySync(options.template, options.dest); | ||
@@ -254,0 +253,0 @@ // api_data |
{ | ||
"name": "apidoc", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "RESTful web API Documentation Generator", | ||
"author": "Peter Rottmann <rottmann@inveris.de>", | ||
"license": "MIT", | ||
"preferGlobal": true, | ||
"homepage": "http://apidocjs.com", | ||
"repository": { | ||
@@ -11,2 +12,9 @@ "type": "git", | ||
}, | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/apidoc/apidoc/blob/master/LICENSE.md" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/apidoc/apidoc/issues" | ||
}, | ||
"main": "./lib/apidoc", | ||
@@ -26,17 +34,18 @@ "bin": "bin/apidoc", | ||
"dependencies": { | ||
"wrench": "~1.5.8", | ||
"underscore": "~1.6.0", | ||
"semver": "~2.2.1", | ||
"colors": "~0.6.2", | ||
"fs-extra": "^0.9.1", | ||
"lodash": "~2.4.1", | ||
"marked": "~0.3.2", | ||
"optimist": "~0.6.1", | ||
"colors": "~0.6.2", | ||
"marked": "~0.3.1" | ||
"semver": "~2.3.0", | ||
"underscore": "~1.6.0", | ||
"wrench": "~1.5.8" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.2", | ||
"grunt": "~0.4.5", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-simple-mocha": "~0.4.0", | ||
"should": "~3.1.3" | ||
"should": "~4.0.1" | ||
} | ||
} | ||
} |
@@ -9,2 +9,28 @@ # apiDoc 0.4.x | ||
## Installation | ||
`npm install apidoc -g` | ||
## Example | ||
```javascript | ||
/** | ||
* @api {get} /user/:id Request User information | ||
* @apiName GetUser | ||
* @apiGroup User | ||
* | ||
* @apiParam {Number} id Users unique ID. | ||
* | ||
* @apiSuccess {String} firstname Firstname of the User. | ||
* @apiSuccess {String} lastname Lastname of the User. | ||
*/ | ||
``` | ||
`apidoc -i example/ -o doc/` | ||
Creates from input files in `example/` a documentation in path `doc/`. | ||
## Supported programming languages | ||
@@ -52,17 +78,6 @@ | ||
## Installation | ||
`npm install apidoc -g` | ||
## Example | ||
`apidoc -i example/ -o doc/` | ||
Creates from input files a documentation in path `doc/`. | ||
## Grunt Module | ||
[grund-apidoc](https://github.com/apidoc/grunt-apidoc) `npm install grunt-apidoc`. | ||
[grunt-apidoc](https://github.com/apidoc/grunt-apidoc) `npm install grunt-apidoc`. | ||
@@ -69,0 +84,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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1132680
0
3
93
8
9344
+ Addedfs-extra@^0.9.1
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs-extra@0.9.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjsonfile@1.1.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedncp@0.5.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsemver@2.3.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedsemver@2.2.1(transitive)
Updatedmarked@~0.3.2
Updatedsemver@~2.3.0