To include yml in Node, first install with npm.
$ npm install iyml
Add in your package.json the following line to run the script
$ node node_modules/iyml/index.js <path> <dest>
{
"name": "example",
"version": "1.0.0",
"description": "",
"scripts": {
"iyml": "node node_modules/iyml/index.js example/example.yml example/modules.yml"
},
"author": "",
"license": "ISC",
"devDependencies": {
"iyml": "^1.0.3"
}
}
category:
name: Category
user:
name: User
include: user.yml
include: category.yml
$ npm run iyml
user:
name: User
category:
name: Category