Create a composed YAML file using $include tag.
npm install yamlinc



STEP #1 - Install global yamlinc command-line utility
``bash`
$ npm install -g yamlinc
STEP #2 - Create "my_swagger_doc.yml" and split it into multiple file
`yaml`file: my_swagger_doc.yml
version: '2.0'
$include: ./tags.yml
$include: ./paths.yml`yaml`file: tags.yml
tags:
- FirstTag
- SecondTag`yaml`file: paths.yml
paths:
/api/me:
get: ...
/api/you:
post: ...
$include: others-paths.yml`yaml`file: others-paths.yml
/api/other/one:
get: ...
/api/other/two:
post: ...
STEP #3 - Simply compile the entry point 'my_swagger_doc.yml'
`bash`
$ yamlinc my_swagger_doc.yml
STEP #4 - Get your compiled file 'my_swagger_doc.inc.yml'
> NOTICE: Yamlinc appends '*.inc.yml' extension to compiled file.
`bash`
$ yamlinc --watch spectacle -d my_swagger_doc.yml
This example generates documentation with spectacle
`bash`
$ yamlinc --exec docker-compose -f docker-compose.yml
`bash`
$ yamlinc --output - input.yml | nc seashells.io 1337
`bash`
$ yamlinc --strict settings.yml
`bash``
$ yamlinc --schema ../node_modules/cloudformation-schema-js-yaml
https://github.com/javanile/yamlinc/issues/new