Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/site-publisher

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/site-publisher - npm Package Compare versions

Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8

4

lib/constants.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc