@antora/site-publisher
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8
'use strict' | ||
module.exports = Object.freeze({ | ||
DEFAULT_DEST_FS: 'build/site', | ||
DEFAULT_DEST_ARCHIVE: 'build/site.zip', | ||
DEFAULT_DEST_FS: './build/site', | ||
DEFAULT_DEST_ARCHIVE: './build/site.zip', | ||
}) |
'use strict' | ||
const ospath = require('path') | ||
const expandPath = require('@antora/expand-path-helper') | ||
const publishStream = require('./common/publish-stream') | ||
@@ -11,3 +11,3 @@ const { dest: vzipDest } = require('gulp-vinyl-zip') | ||
function publishToArchive (config, files, playbook) { | ||
const destFile = ospath.resolve(playbook.dir || '.', config.path || DEFAULT_DEST_ARCHIVE) | ||
const destFile = expandPath(config.path || DEFAULT_DEST_ARCHIVE, '~+', playbook.dir || '.') | ||
return publishStream(vzipDest(destFile), files) | ||
@@ -14,0 +14,0 @@ } |
'use strict' | ||
const expandPath = require('@antora/expand-path-helper') | ||
const fs = require('fs-extra') | ||
const ospath = require('path') | ||
const publishStream = require('./common/publish-stream') | ||
@@ -11,3 +11,3 @@ const { dest: vfsDest } = require('vinyl-fs') | ||
function publishToFs (config, files, playbook) { | ||
const destDir = ospath.resolve(playbook.dir || '.', config.path || DEFAULT_DEST_FS) | ||
const destDir = expandPath(config.path || DEFAULT_DEST_FS, '~+', playbook.dir || '.') | ||
return config.clean | ||
@@ -14,0 +14,0 @@ ? fs.remove(destDir).then(() => publishStream(vfsDest(destDir), files)) |
{ | ||
"name": "@antora/site-publisher", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-alpha.8", | ||
"description": "Publishes the files generated in an Antora documentation pipeline to the destination(s) specified in the playbook.", | ||
@@ -18,2 +18,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/expand-path-helper": "^1.0.0", | ||
"fs-extra": "^5.0.0", | ||
@@ -20,0 +21,0 @@ "gulp-vinyl-zip": "^2.1.0", |
@@ -8,3 +8,3 @@ # Antora Site Publisher | ||
[Antora](https://antora.org) is a modular static site generator designed for creating documentation sites from AsciiDoc documents. | ||
Its site generator pipeline aggregates documents from versioned content repositories and processes them using [Asciidoctor](http://asciidoctor.org). | ||
Its site generator pipeline aggregates documents from versioned content repositories and processes them using [Asciidoctor](https://asciidoctor.org). | ||
@@ -11,0 +11,0 @@ ## Copyright and License |
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
11006
5
+ Added@antora/expand-path-helper@1.0.0(transitive)