【文件属性】:
文件名称:refs:通过文件路径引用将YAML,JSON或INI配置文件编译和合并在一起
文件大小:57KB
文件格式:ZIP
更新时间:2021-05-22 21:50:34
config yaml template json reference
裁判
通过文件路径引用将YAML,JSON或INI配置文件编译和合并在一起
安装:
$ npm install -g refs
示例:YAML
模板:
AWSTemplateFormatVersion : ' 2010-09-09 '
Resources :
- $ref : ./relative/path/to/file.yaml
RolePolicies :
$ref : ./resources/role-policies.yaml
Type : ' AWS::IAM::Policy '
Properties :
PolicyName : custom-role
Roles :
- custom-role
PolicyDocument :
Version : ' 2012-10-17 '
Statement :
-
【文件预览】:
refs-master
----.eslintrc.json(223B)
----lib()
--------processor-yaml.js(1KB)
--------utils()
--------processor-json.js(808B)
--------processor-ini.js(1KB)
--------index.js(2KB)
----.npmignore(44B)
----.travis.yml(1KB)
----LICENSE(1KB)
----test()
--------.eslintrc.json(107B)
--------test-lib-cli.js(2KB)
--------test-lib-json-processor.js(7KB)
--------test-lib-ini-processor.js(5KB)
--------test-lib-index.js(6KB)
--------all.js(300B)
--------data()
--------test-lib-yaml-processor.js(7KB)
----.prettierrc(73B)
----README.md(2KB)
----.gitignore(578B)
----index.js(50B)
----bin()
--------refs.js(911B)
----package-lock.json(149KB)
----package.json(1KB)