bln-ops-blueprint-library
Advanced tools
Comparing version 1.0.8 to 1.0.10
@@ -62,3 +62,4 @@ #!/usr/bin/env node | ||
await Promise.all(blueprints.map(async ({path: filePath, service}) => { | ||
const outputPath = `${output}/${service}.yaml`; | ||
const extension = filePath.split('.').pop(); | ||
const outputPath = `${output}/${service}.${extension}`; | ||
return new YamlPrinter({ | ||
@@ -65,0 +66,0 @@ blueprintPath: filePath, |
{ | ||
"name": "bln-ops-blueprint-library", | ||
"version": "1.0.8", | ||
"version": "1.0.10", | ||
"lockfileVersion": 1, | ||
@@ -113,7 +113,7 @@ "requires": true, | ||
"aws-sdk": { | ||
"version": "2.685.0", | ||
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.685.0.tgz", | ||
"integrity": "sha512-mAOj7b4PuXRxIZkNdSkBWZ28lS2wYUY7O9u33nH9a7BawlttMNbxOgE/wDCPMrTLfj+RLQx0jvoIYj8BKCTRFw==", | ||
"version": "2.727.1", | ||
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.727.1.tgz", | ||
"integrity": "sha512-K+XdN11os6hvI9DgWEK9m/fPKHuDDVZalFWPouwqSk0phEdDCJ/K8InHUFL9DMvE4bxyWRuqI9dzNfdmxX0sxQ==", | ||
"requires": { | ||
"buffer": "4.9.1", | ||
"buffer": "4.9.2", | ||
"events": "1.1.1", | ||
@@ -147,5 +147,5 @@ "ieee754": "1.1.13", | ||
"bln-squrl-tool": { | ||
"version": "1.1.4", | ||
"resolved": "https://registry.npmjs.org/bln-squrl-tool/-/bln-squrl-tool-1.1.4.tgz", | ||
"integrity": "sha512-Hkbj9d1sTkoMNg0hR1Ev6hBP6L4GymYGsQZd93IvCWx0qNtPBvsR8/o0UUwOTTNeSY8jV1Gz1A/kJhrZRc+11g==", | ||
"version": "1.1.5", | ||
"resolved": "https://registry.npmjs.org/bln-squrl-tool/-/bln-squrl-tool-1.1.5.tgz", | ||
"integrity": "sha512-IXOmzpftpB+zWJiBcVQfe6H1FTE6HeAlAAOB4gu2q0HrAEzjzixkPBV4DLn9lR4jmjuAk37iioxHNQh2XwIy1Q==", | ||
"requires": { | ||
@@ -179,5 +179,5 @@ "aws-sdk": "^2.656.0", | ||
"buffer": { | ||
"version": "4.9.1", | ||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", | ||
"integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", | ||
"version": "4.9.2", | ||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", | ||
"integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", | ||
"requires": { | ||
@@ -832,5 +832,5 @@ "base64-js": "^1.0.2", | ||
"lodash": { | ||
"version": "4.17.15", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", | ||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" | ||
"version": "4.17.19", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", | ||
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" | ||
}, | ||
@@ -837,0 +837,0 @@ "lodash.camelcase": { |
{ | ||
"name": "bln-ops-blueprint-library", | ||
"version": "1.0.8", | ||
"version": "1.0.10", | ||
"description": "Helper tool for parsing and rendering templates", | ||
@@ -30,8 +30,8 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"bln-squrl-tool": "^1.1.4", | ||
"bln-squrl-tool": "^1.1.5", | ||
"commander": "^2.19.0", | ||
"js-yaml": "^3.13.1", | ||
"lodash": "^4.17.11", | ||
"lodash": "^4.17.19", | ||
"nunjucks": "^3.2.1" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # bln-ops-blueprint | ||
- NodeJS 8.10 or higher | ||
- NodeJS 8.12 or higher | ||
- NPM 6.10 or higher | ||
@@ -19,32 +19,24 @@ | ||
```shell | ||
blueprint -h | ||
``` | ||
$ blueprint -h | ||
Usage: blueprint [options] [command] | ||
Options: | ||
-h, --help output usage information | ||
> ``` | ||
> Usage: blueprint [options] [command] | ||
> | ||
> Options: | ||
> -V, --version output the version number | ||
> -h, --help output usage information | ||
> | ||
> Commands: | ||
> render [options] render a yaml service configuration file based on a template | ||
> generate-config [options] generate a config file with secrets that can be used consumed by blueprint | ||
> ``` | ||
Commands: | ||
render [options] render a yaml service configuration file based on a template | ||
``` | ||
### Render Templates Example | ||
### Render templates | ||
```shell | ||
blueprint generate-config --vpc <cluster> --environment <environment> -m template/mapping.js -o ~/temp/blueprint-env.json | ||
`render` command requires a config file (a sample config file is given in `config/defaults.json`), a directory containing template (`templates/example.yaml.template`), and an output directory: | ||
blueprint render -i template/implementation.yaml -c ~/temp/blueprint-env.json -o vpc/<cluster>/env/<env> | ||
``` | ||
blueprint render -h | ||
Usage: render [options] | ||
render a yaml service configuration file based on a template | ||
Options: | ||
-V, --version output the version number | ||
-c --config <config> Configuration file that contains enironment specific variables | ||
-d --directory <directory> Directory of templates that will be used for generating yaml files | ||
-o --output <output> Output directory | ||
-h, --help output usage informatio | ||
``` | ||
Example: | ||
`blueprint render -c config/defaults.json -d templates -o ./` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1728
69344
41
Updatedbln-squrl-tool@^1.1.5
Updatedlodash@^4.17.19