https://github.com/afeiship/nx-yaml
Nx yaml tools.
https://github.com/afeiship/nx-yaml
erb nx template yaml
Last synced: about 1 month ago
JSON representation
Nx yaml tools.
- Host: GitHub
- URL: https://github.com/afeiship/nx-yaml
- Owner: afeiship
- Created: 2021-04-30T02:42:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T05:48:45.000Z (about 5 years ago)
- Last Synced: 2025-09-11T07:04:26.597Z (10 months ago)
- Topics: erb, nx, template, yaml
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nx-yaml
> Nx yaml tools.
## installation
```rb
# from gem
gem 'nx-yaml'
# from git
gem 'nx-yaml', git: 'git@github.com:afeiship/nx-yaml.git'
```
## usage
```rb
Nx::Yaml.load('./template.yml', { name: 'my-template', description: 'Awesome template'})
```
## template.yml
```yml
name: nx-yml
version: 0.1.0
env:
home: <%= ENV["HOME"] %>
host: <%= host %>
```
```rb
{
name: "nx-yml",
version: "0.1.0",
env: {
home: "/Users/aric.zheng",
},
host: "0.0.0.0",
}
```
## build/publish
```shell
# build
gem build nx-yaml.gemspec
# publish
gem push nx-yaml-0.1.0.gem
```
## rspec
- https://rspec.info/