• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.

Yamlinc

Create a composed YAML file using $include tag.

NPM

Build Status Test Coverage Maintainability

Simple usage

STEP #1 - Install global yamlinc command-line utility

$ npm install -g yamlinc

STEP #2 - Create "my_swagger_doc.yml" and split it into multiple file

## file: my_swagger_doc.yml
version: '2.0'
$include: ./tags.yml
$include: ./paths.yml
## file: tags.yml
tags:
- FirstTag
- SecondTag
## file: paths.yml
paths:
  /api/me:
    get: ...      
  /api/you:
    post: ...
  $include: others-paths.yml
## file: others-paths.yml
/api/other/one:
  get: ...      
/api/other/two:
  post: ...

STEP #3 - Simply compile the entry point 'my_swagger_doc.yml'

$ 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.

Development watcher

During development you need constantily updated compiled file by watching changes of dependencies

$ yamlinc --watch spectacle -d my_swagger_doc.yml

This example generates documentation with spectacle

Feed your .inc.yml file

If your application needs a compiled file as parameter you can simply compound and feed

$ yamlinc --exec docker-compose -f docker-compose.yml

Redirect output to another command

If your application needs send output to another command or chaining using pipe follow this example

$ yamlinc --output - input.yml | nc seashells.io 1337

Parse files to find syntax errors

If your application needs stop after a syntax error or missing file inclusion use strict mode

$ yamlinc --strict settings.yml

Use an external schema

If you have your own or a third party schema you can pass it to yamlinc like this

$ yamlinc --schema ../node_modules/cloudformation-schema-js-yaml

Create your scenario

If you have custom scenario with YAML file please place issues on the following page

https://github.com/javanile/yamlinc/issues/new

More Repositories

1

vtiger

🐯 Vtiger is the #1 business automation software. Try it with Docker!
PHP
70
star
2

php-imap2

PHP IMAP with OAUTH2
PHP
48
star
3

moldable

The only PHP & MySQL ORM for Continuous Delivery. Using javanile/moldable can eliminate the step of data migrations and schema changes, often manual steps or exceptions to a continuous delivery workflow.
PHP
40
star
4

vtiger-demo

😎 vtiger demo
Shell
24
star
5

mush

Mush, a build system for shell.
Shell
22
star
6

dist.sh

📦 The perfect ZIP file bundler
Shell
19
star
7

lcov.sh

🔮 LCOV framework for Shell projects
Shell
17
star
8

inotifywait-polling

🔔 inotifywait alternative with polling
Shell
10
star
9

springboard

🌈 Your project's first place
Makefile
10
star
10

vtiger-client

🏭 Industry Standard Vtiger API Client
PHP
8
star
11

fixedsys-css

Fixedsys - Old Fashion Font
HTML
8
star
12

github-traffic

📈 GitHub Traffic Report - Generate an awesome traffic report from your repositories
Shell
7
star
13

twitter-button

🐦 Create Magic Twitter Button to bump your README.md file
HTML
7
star
14

masterplan

Business Automation from CLI
PHP
6
star
15

granular

WordPress extension framework based on object-oriented paradigm.
PHP
6
star
16

webrequest

Webhooks Adapter suitable for 99% of No-code scenarios
PHP
5
star
17

php-glossary

Demonstrative Conceptual Implementation: Glossary Code Analysis Tool for PHP
PHP
4
star
18

binst.tk

Binary Installer Toolkit
Makefile
4
star
19

vtiger-cli

🛠 The ultimate CLI for vtiger
PHP
4
star
20

novnc

Ready to use NoVNC client for SeleniumHQ on Docker
Shell
4
star
21

centralio

Client/Server library for UDP
JavaScript
3
star
22

todaynotes

📝 TodayNotes - Meeting notes definitely crisp and clean (and much more)
JavaScript
3
star
23

vtiger-dev

vtiger docker image released for development environment
Shell
3
star
24

hamper

📚 Modern database library for vtiger
PHP
3
star
25

bpkg-ci

BPKG/CI - The power of BPKG on your CI/CD pipelines or workflows
Shell
3
star
26

github-showcase

Official Showcase
Shell
2
star
27

vtiger-styleci

PHP
2
star
28

upload

📤 Upload files with cURL and Docker
PHP
2
star
29

fake-ssh-server

Docker container which can be used in SSH integration tests
Dockerfile
2
star
30

blog.lcov.sh

🔮 Shell Coverage (The Blog)
2
star
31

awesome-webrequest

🚀 A collection of awesome webrequest snippets, resources and shiny things.
2
star
32

gitlab-ci-helper

Shell
2
star
33

crisp

A simple, minimal, classless stylesheet for simple HTML pages
SCSS
2
star
34

gitcat

Shell
2
star
35

heroku-curlmail

Send emails via CURL and Heroku
2
star
36

git-dc

☢ Git Dangerous Commands also know GIT-DC
Shell
2
star
37

mysql-import

🗃 Import SQL file
PHP
2
star
38

webrequest-ui

webrequest ui framework
HTML
2
star
39

watch-log

Watch your log files during development and save your time.
JavaScript
2
star
40

php-sheetbase

PHP
2
star
41

pipetest

⛲ A minimal set of shell functions useful to implement assertions through pipe chaining. Loved by developer
Shell
2
star
42

php-file

PHP
2
star
43

dotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
PHP
2
star
44

php-object-inspector

PHP
2
star
45

vtiger-core

Get vtiger with composer
Shell
2
star
46

bump.sh

Shell
1
star
47

ci.lcov.sh

1
star
48

google-php-imap

Open IMAP connection without password (for Google/Gmail)
1
star
49

vtiger-preload

Discussion about preload on vtiger
Hack
1
star
50

http-robot

PHP
1
star
51

ppa

Ruby
1
star
52

human-mink-extension

Behat MinkExtension for humans
PHP
1
star
53

vtiger-console

PHP
1
star
54

cliz

Command-line interface zork
JavaScript
1
star
55

boor

🐮 Use only if you hate good manners
JavaScript
1
star
56

hounder

Static code analysis for vtiger
PHP
1
star
57

lcov-sh-action

Shell
1
star
58

readme.sh

Makefile
1
star
59

webrequest-roadmap

Roadmap of Webrequest Revolution
1
star
60

cuba

cURL + BASH = cuba
Shell
1
star
61

webrequest-template

Get Started with Webrequest 💡
PHP
1
star
62

glossar

🀄
PHP
1
star
63

vtiger-docs

PHP
1
star
64

bash-ci

The Premium Docker Image for CI/CD
Shell
1
star
65

forkfile

Forkfile
Makefile
1
star
66

adminer

Database management in a single PHP file.
PHP
1
star
67

yaml

Include Yaml on Yaml for PHP
PHP
1
star
68

mysql.javanile.org

Makefile
1
star
69

proxy

Official Javanile Proxy
Makefile
1
star
70

php-imap-outlook

PHP
1
star
71

make.bat

🔥 Make for Windows ignited by Docker
Makefile
1
star
72

php-imap2-demo

Dockerfile
1
star
73

producer

Laravel prototyping tool
PHP
1
star
74

docker-compose-job

Shell
1
star
75

php-gemstone

PHP
1
star
76

wirecraft

PHP
1
star
77

vtiger-propan

VTiger CRM with Propan
1
star
78

sonarqube

Dockerfile
1
star
79

composer

PHP Composer for Docker Dev Environments
Shell
1
star
80

php-global-var

👷 Replacement strategy of messy code because of the global
PHP
1
star
81

crontab

The best crontab container for your docker compose file.
Makefile
1
star
82

vtiger-composer

PHP
1
star
83

docker-compose

Makefile
1
star
84

report-ci

📋 Upload, store & share your reports from your favourite CI pipeline.
HTML
1
star
85

google-spreadsheet-buffer

Google Spreadsheet Buffer
Shell
1
star
86

fork.sh

🏤 Maintenance strategy for prototype-based projects
Shell
1
star
87

propan

🍥 Project Pancake
PHP
1
star
88

javanile.github.io

Public website
CSS
1
star
89

jsonform

JavaScript
1
star
90

bpkg-status

Shell
1
star
91

symvol

Symbolic Volume for Docker
HTML
1
star
92

docs.javanile.org

Official Documentation Portal
CSS
1
star
93

notification

JavaScript
1
star
94

vtiger-core-installer

PHP
1
star
95

ifttt

PHP
1
star
96

vtiger-i18n

🌎 Vtiger internationalisation and localisation
PHP
1
star
97

editorconfig

EditorConfig on the fly!
1
star
98

tigermate

PHP
1
star
99

bname

Shell
1
star
100

myddleware

1
star