merge-yaml-cli
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -28,9 +28,9 @@ #!/usr/bin/env node | ||
const swagger = mergeYaml(files) | ||
const mergeResult = mergeYaml(files) | ||
console.log('Writing:') | ||
console.log(args.output) | ||
fs.writeFileSync(args.output, jsYaml.safeDump(swagger)) | ||
fs.writeFileSync(args.output, jsYaml.safeDump(mergeResult)) | ||
console.log(os.EOL) | ||
console.log('Finished merge!') |
{ | ||
"name": "merge-yaml-cli", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "CLI utility for merging YAML files", | ||
@@ -23,3 +23,5 @@ "bin": { | ||
"scripts": { | ||
"test": "standard" | ||
"test": "npm run test:lint && docker-compose run --rm test", | ||
"test:ci": "npm run test:lint && docker-compose run test", | ||
"test:lint": "standard" | ||
}, | ||
@@ -26,0 +28,0 @@ "dependencies": { |
@@ -5,2 +5,4 @@ # merge-yaml-cli | ||
[![CircleCI](https://circleci.com/gh/brainsiq/merge-yaml-cli/tree/master.svg?style=svg&circle-token=077fdc5153f1faebffa5e687a44369759c6a820d)](https://circleci.com/gh/brainsiq/merge-yaml-cli/tree/master) | ||
A simple CLI wrapper around [merge-yaml](https://www.npmjs.com/package/merge-yaml) using [glob](https://www.npmjs.com/package/glob) patterns to specify input files. | ||
@@ -14,1 +16,7 @@ | ||
``` | ||
#### Tests | ||
The repo contains one simple test case. `tests/base.yml` is merged with `includes/*.yml` and the output is compared with `expected.yml`. | ||
The test can be run with `yarn test` or `npm test` but requires Docker and Docker Compose to be installed. |
Sorry, the diff of this file is not supported yet
42807
12
21