Commit 4318ea92 authored by Dan Allen's avatar Dan Allen

configure lerna and yarn workspaces

parent d7c4c541
/node_modules/
/coverage/
/.nyc_output/
/coverage/
/node_modules/
/packages/*/node_modules/
workspaces-experimental true
{
"lerna": "2.5.1",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "1.0.0-alpha.1"
}
// require/define our software components
const buildPlaybook = require('../packages/playbook-builder/lib/index')
const buildPlaybook = require('@antora/playbook-builder')
// ...
// run the pipeline
......
{
"name": "antora-direct",
"version": "1.0.0-alpha.1",
"description": "A predefined documentation pipeline for creating documentation sites using Antora",
"author": {
"name": "OpenDevise Inc.",
"url": "http://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"private": true,
"devDependencies": {
"@commitlint/cli": "^5.2.0",
"array-to-stream": "^1.0.2",
......@@ -32,25 +21,7 @@
"nyc": "^11.3.0",
"prettier-eslint-cli": "^4.4.2"
},
"dependencies": {
"asciidoctor.js": "^1.5.6-preview.4",
"camelcase-keys": "^4.2.0",
"convict": "^4.0.2",
"cson-parser": "^2.0.0",
"deep-freeze": "^0.0.1",
"del": "^3.0.0",
"download": "^6.2.5",
"fs-extra": "^4.0.2",
"gulp-buffer": "^0.0.2",
"gulp-vinyl-zip": "^2.1.0",
"js-yaml": "^3.10.0",
"lodash": "^4.17.4",
"matcher": "^1.0.0",
"mime-types": "^2.1.17",
"minimatch-all": "^1.1.0",
"nodegit": "^0.20.3",
"stream-to-array": "^2.3.0",
"vinyl": "^2.1.0",
"vinyl-fs": "^2.4.4"
}
"workspaces": [
"packages/*"
]
}
......@@ -70,7 +70,7 @@ The API for the content aggregator should be used as follows:
[source,js]
----
const aggregateContent = require('../packages/content-aggregator/lib/index')
const aggregateContent = require('@antora/content-aggregator')
//...
......
{
"name": "@antora/content-aggregator",
"version": "1.0.0-alpha.1",
"description": "A component for Antora that fetches the content specified in the playbook for use in the documentation pipeline.",
"author": {
"name": "OpenDevise Inc.",
"url": "https://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"del": "^3.0.0",
"fs-extra": "^4.0.2",
"js-yaml": "^3.10.0",
"lodash": "^4.17.4",
"matcher": "^1.0.0",
"mime-types": "^2.1.17",
"nodegit": "^0.20.3",
"stream-to-array": "^2.3.0",
"vinyl": "^2.1.0",
"vinyl-fs": "^2.4.4"
}
}
......@@ -2,13 +2,13 @@
'use strict'
const _ = require('lodash')
const aggregateContent = require('../lib/index')
const aggregateContent = require('@antora/content-aggregator')
const del = require('del')
const { expect } = require('../../../test/test-utils')
const FixtureRepo = require('./repo-utils')
const path = require('path')
const { COMPONENT_DESC_FILENAME } = require('../lib/constants')
const { COMPONENT_DESC_FILENAME } = require('@antora/content-aggregator/lib/constants')
function testAll (testFunction, count = 1) {
function test (fixtureRepoOptions) {
......
......@@ -4,7 +4,7 @@ const fs = require('fs-extra')
const git = require('nodegit')
const path = require('path')
const { COMPONENT_DESC_FILENAME } = require('../lib/constants')
const { COMPONENT_DESC_FILENAME } = require('@antora/content-aggregator/lib/constants')
const fixturesPath = path.resolve(__dirname, 'fixtures')
const reposBasePath = path.resolve(__dirname, 'repos')
......
......@@ -63,7 +63,7 @@ The API for the content classifier should be used as follows:
[source,js]
----
const classifyContent = require ('../packages/content-classifier/lib/index')
const classifyContent = require('@antora/content-classifier')
//...
......
{
"name": "@antora/content-classifier",
"version": "1.0.0-alpha.1",
"description": "A component for Antora that organizes the content into a catalog for use in the documentation pipeline.",
"author": {
"name": "OpenDevise Inc.",
"url": "https://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"lodash": "^4.17.4"
}
}
......@@ -2,10 +2,10 @@
'use strict'
const { expect } = require('../../../test/test-utils')
const classifyContent = require('../lib/index')
const classifyContent = require('@antora/content-classifier')
const path = require('path')
const mimeTypes = require('../../content-aggregator/lib/mime-types-with-asciidoc')
const { COMPONENT_DESC_FILENAME } = require('../../content-aggregator/lib/constants')
const mimeTypes = require('@antora/content-aggregator/lib/mime-types-with-asciidoc')
const { COMPONENT_DESC_FILENAME } = require('@antora/content-aggregator/lib/constants')
const createFile = (filepath) => {
const basename = path.basename(filepath)
......
......@@ -134,7 +134,7 @@ The API for the document converter should be used as follows:
// Q: should the convertDocuments return a collection of files which were converted?
[source,js]
----
const convertDocuments = require('../packages/document-converter/lib/index')
const convertDocuments = require('@antora/document-converter')
//...
......@@ -146,7 +146,7 @@ Alternately, the pipeline can handle the conversion itself:
// TODO check this code
[source,js]
----
const convertDocument = require('../packages/document-converter/lib/convert-document')
const convertDocument = require('@antora/document-converter/lib/convert-document')
//...
......
{
"name": "@antora/document-converter",
"version": "1.0.0-alpha.1",
"description": "A component for Antora that converts AsciiDoc documents to embeddable HTML for use in the pages of the documentation site.",
"author": {
"name": "OpenDevise Inc.",
"url": "https://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"asciidoctor.js": "^1.5.6-preview.4"
}
}
......@@ -2,7 +2,7 @@
'use strict'
const { expect, spy } = require('../../../test/test-utils')
const convertDocument = require('../lib/index')
const convertDocument = require('@antora/document-converter')
const Buffer = require('buffer').Buffer
......
......@@ -75,7 +75,7 @@ The API for the page generator should be used as follows:
[source,js]
----
const generatePages = require('../packages/page-generator/lib/index')
const generatePages = require('@antora/page-generator')
//...
......
......@@ -75,7 +75,7 @@ The API for the playbook builder should be used as follows:
////
[source,js]
----
const buildPlaybook = require ('../packages/playbook/lib/index')
const buildPlaybook = require('@antora/playbook-builder')
const playbook = buildPlaybook()
----
......@@ -87,7 +87,7 @@ It should be possible to isolate the API call from the process environment by pa
[source,js]
----
const buildPlaybook = require ('../packages/playbook/lib/index')
const buildPlaybook = require('@antora/playbook-builder')
const playbook = buildPlaybook(process.argv.slice(2), process.env)
----
......
{
"name": "@antora/playbook-builder",
"version": "1.0.0-alpha.1",
"description": "A component for Antora that takes configuration input and builds a playbook object that is used to configure the documentation pipeline.",
"author": {
"name": "OpenDevise Inc.",
"url": "https://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"camelcase-keys": "^4.2.0",
"convict": "^4.0.2",
"cson-parser": "^2.0.0",
"deep-freeze": "^0.0.1",
"js-yaml": "^3.10.0"
}
}
......@@ -2,7 +2,7 @@
'use strict'
const { expect } = require('../../../test/test-utils')
const buildPlaybook = require('../lib/index')
const buildPlaybook = require('@antora/playbook-builder')
const path = require('path')
describe('buildPlaybook()', () => {
......
......@@ -64,7 +64,7 @@ The API for the UI loader should be used as follows:
[source,js]
----
const loadUi = require('../packages/ui-loader/lib/index')
const loadUi = require('@antora/ui-loader')
//...
......
{
"name": "@antora/ui-loader",
"version": "1.0.0-alpha.1",
"description": "A component for Antora that downloads the UI bundle and makes the files available to the documentation pipeline.",
"author": {
"name": "OpenDevise Inc.",
"url": "https://opendevise.com"
},
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"download": "^6.2.5",
"fs-extra": "^4.0.2",
"gulp-buffer": "^0.0.2",
"js-yaml": "^3.10.0",
"lodash": "^4.17.4",
"minimatch-all": "^1.1.0",
"stream-to-array": "^2.3.0",
"gulp-vinyl-zip": "^2.1.0"
}
}
......@@ -5,7 +5,7 @@ const del = require('del')
const { expect } = require('../../../test/test-utils')
const fs = require('fs')
const http = require('http')
const loadUi = require('../lib/index')
const loadUi = require('@antora/ui-loader')
const path = require('path')
function testAll (archive, testFunction) {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment