@antora/playbook-builder
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -9,3 +9,3 @@ 'use strict' | ||
const json = require('json5') | ||
const path = require('path') | ||
const ospath = require('path') | ||
const yaml = require('js-yaml') | ||
@@ -37,4 +37,4 @@ | ||
if (specFileRelPath) { | ||
let specFileAbsPath = path.resolve(process.cwd(), specFileRelPath) | ||
if (path.extname(specFileAbsPath)) { | ||
let specFileAbsPath = ospath.resolve(specFileRelPath) | ||
if (ospath.extname(specFileAbsPath)) { | ||
if (!fs.existsSync(specFileAbsPath)) throw new Error('playbook spec file does not exist') | ||
@@ -67,3 +67,3 @@ } else if (fs.existsSync(specFileAbsPath + '.yml')) { | ||
switch (path.extname(specFilePath)) { | ||
switch (ospath.extname(specFilePath)) { | ||
case '.yml': | ||
@@ -70,0 +70,0 @@ return yaml.safeLoad(data) |
@@ -0,1 +1,3 @@ | ||
'use strict' | ||
module.exports = { | ||
@@ -11,3 +13,3 @@ playbook: { | ||
url: { | ||
doc: 'The base URL of the published site. Should not include a trailing slash.', | ||
doc: 'The base URL of the published site. Should not include trailing slash.', | ||
format: String, | ||
@@ -55,2 +57,7 @@ default: undefined, | ||
content: { | ||
branches: { | ||
doc: 'The default branch pattern to use when no specific pattern is provided', | ||
format: Array, | ||
default: ['v*', 'master'], | ||
}, | ||
sources: { | ||
@@ -60,9 +67,3 @@ doc: 'The list of git repositories + branch patterns to use.', | ||
default: [], | ||
env: 'CONTENT_SOURCES', | ||
}, | ||
branches: { | ||
doc: 'The default branch pattern to use when no specific pattern is provided', | ||
format: Array, | ||
default: ['v*', 'master'], | ||
}, | ||
}, | ||
@@ -126,2 +127,21 @@ ui: { | ||
}, | ||
output: { | ||
clean: { | ||
doc: 'Remove destination path before publishing (fs only).', | ||
format: Boolean, | ||
default: false, | ||
arg: 'clean', | ||
}, | ||
dir: { | ||
doc: 'The directory where the site should be published. (default: build/site)', | ||
format: String, | ||
default: undefined, | ||
arg: 'to-dir', | ||
}, | ||
destinations: { | ||
doc: 'A list of destinations where the generated site should be published.', | ||
format: Array, | ||
default: undefined, | ||
}, | ||
}, | ||
} |
{ | ||
"name": "@antora/playbook-builder", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.", | ||
"license": "MPL-2.0", | ||
"author": { | ||
"name": "OpenDevise Inc.", | ||
"url": "https://opendevise.com" | ||
}, | ||
"author": "OpenDevise Inc. (https://opendevise.com)", | ||
"contributors": [ | ||
"Dan Allen <dan@opendevise.com>", | ||
"Sarah White <sarah@opendevise.com>", | ||
"Hubert SABLONNIÈRE <hubert.sablonniere@gmail.com>" | ||
], | ||
"homepage": "https://antora.org", | ||
@@ -19,5 +21,6 @@ "repository": "gitlab:antora/antora", | ||
"convict": "^4.0.2", | ||
"cson-parser": "^2.0.0", | ||
"cson-parser": "^2.0.1", | ||
"deep-freeze": "^0.0.1", | ||
"js-yaml": "^3.10.0" | ||
"js-yaml": "^3.10.0", | ||
"json5": "^0.5.1" | ||
}, | ||
@@ -24,0 +27,0 @@ "engines": { |
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
9767
258
13
6
+ Addedjson5@^0.5.1
+ Addedjson5@0.5.1(transitive)
Updatedcson-parser@^2.0.1