7.2.1 • Published 5 years ago

megadoc-cli v7.2.1

Weekly downloads
111
License
-
Repository
-
Last release
5 years ago

Megadoc CLI

Filtering with tags

It is possible to perform a partial compilation of only a subset of the sources defined in your configuration file. The following command-line options help you perform such filtering:

  1. -t, --only for compiling only the sources with the specified tags
  2. -e, --exclude for skipping the sources with the specified tags

Tags may be explicitly specified in the source declaration:

config.sources = [{
  include: [ 'lib/*.js' ],
  tags: [ 'js', 'api' ]
}]

Or, when unspecified and an id is specified for a source, an implicit tag of that id is created for you:

config.sources = [{
  id: 'js',
  include: [ 'lib/*.js' ]
}]
// tags => [ 'js' ]

The exclusion tags have precedence over the inclusion tags. For example, the following invocation will cause only "bar" to be compiled and "foo" to be skipped even though it was specified in the whitelist:

megadoc build --only foo --only bar --exclude foo

Examples

Compile only the "js" source:

megadoc build -t js

Compile everything except the "js" source:

megadoc build -e js
7.2.1

5 years ago

7.2.0

5 years ago

7.1.1

6 years ago

7.1.0

6 years ago

7.0.0

6 years ago

7.0.0-beta.2

6 years ago

7.0.0-beta.1

6 years ago

6.5.0

6 years ago

6.3.0

7 years ago

6.2.4

7 years ago

6.2.3

7 years ago

6.2.2

7 years ago

6.2.0

7 years ago

6.1.0

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

6.0.0-beta.12

7 years ago

6.0.0-beta.11

7 years ago

6.0.0-beta.10

7 years ago

6.0.0-beta.9

7 years ago

6.0.0-beta.7

7 years ago

6.0.0-beta.6

7 years ago

6.0.0-beta.5

7 years ago

6.0.0-beta.3

7 years ago

6.0.0-beta.2

7 years ago