I've developed a Symfony bundle, and I am trying to create a recipe. Before submitting it to recipes-contrib
, I want to test it, so I followed the instructions for private recipes -- not because I want a private recipe (that is, neither the bundle nor the recipe is "private" in the sense of a private GitHub project).
I have read, re-read, then read again the documentation for creating a recipe, and I feel like I'm missing a very important step. The documentation for a private repository only talks about the package.version.json file, e.g.
{
"manifests": {
"acme/private-bundle": {
"manifest": {
"bundles": {
"Acme\\PrivateBundle\\AcmePrivateBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%"
}
},
"files": {
"config/packages/acme_private.yaml": {
"contents": [
"acme_private:",
" encode: true",
""
],
"executable": false
}
},
"ref": "7405f3af1312d1f9121afed4dddef636c6c7ff00"
}
}
}
This file appears to be the output of some command that reads the file in the format as expected for a contrib
recipe: a directory structure that has a config
directory for routes and packages, maybe a src
directory, etc.
Obviously, no one is typing in by hand line by line a YAML file (or PHP!) as a list of strings in the content
key.
It appears that the master
branch of recipes and recipes-contrib
contains the directory structure, and flex/main
branch contains the "compiled" JSON recipe file.
But in the private recipe instructions, there are no instructions as to how to get from the DX-friendly files to the JSON recipe.
TL;DR; How do I create a package.version.json
recipe from the package/version/ directory that contains manifest.json
, config
, etc.?
web-token.jwt-framework.3.0.json
without having to write the JSON file by hand. Note the "Obviously no one is typing in by hand line by line a yaml file (or PHP!) as a list of strings in the "content" key" remark. – Sammie