@folkforms/dev-info v0.0.35
dev-info
Used to provide help text or index all the things you need to remember in a new job. You have a single JSON file containing all the info, as opposed to having dozens of text files everywhere.
- Install
dev-infoglobally:yarn add --global dev-info - Create
~/.dev-info.json
{
"data": {
"frontend": {
"run": {
"_description": "The frontend uses yarn. Use 'yarn start' to run it.",
"_executable: "yarn start"
},
"tests": {
"_description": "Description of the frontend tests. Use 'yarn test' to run the tests.",
"_executable: "yarn test"
},
"deploy": {
"_duplicate": "misc deploy"
}
},
"backend": {
"build": {
"_description": "The backend uses maven.",
"_executable: "mvn compile"
},
"run": {
"_description": "Run StartServer.jar to run the backend.",
"_executable: "java -jar StartServer.jar"
},
"tests": {
"_description": "Description of the backend tests.",
"_executable: "mvn clean verify"
},
"deploy": {
"_duplicate": "misc deploy"
}
},
"misc": {
"deploy": {
"_description": "How to deploy stuff"
}
}
},
"paramOverrides": {
"foo-project": {
"appRoot": "overridden-app-root",
"staticRoute": "overridden-static-root",
"zkGroup": "overridden-zk-group"
}
},
"projectDomains": {
"domain-one.com": [
"foo-project",
"bar-project"
],
"domain-two.com": [
"muk-project"
]
},
"projectNotes": {
"foo-project": {
"frontend": {
"run": {
"_note": "This note only appears for 'frontend run' inside foo-project"
}
}
},
"bar-project": {
"frontend": {
"run": {
"_note": "This note only appears for 'frontend run' inside bar-project"
}
}
}
},
}- Type
devfor a list of topics
frontend
run
tests
backend
build
run
tests- Type
dev frontend runfor detail
The frontend uses yarn.
Executable: yarn start- Use the
-xargument to execute a command. For example,dev frontend run -xwill execute whatever is in the_executablefield, in this caseyarn start.
Data options
_description: Text that describes the given topic_executable: An executable command that will be run when the-xoption is specified_duplicate: Link this entry to another entry_file: Use the given file's contents as the description (and optionally executable as well)
_file options
Files loaded via the _file option can denote executables in the following two forms:
## Executable
fooor
Executable: fooParameters
Most of the parameters are based on values taken from the HubSpot project yaml configuration name i.e. "hubspot.deploy/my-project.yaml".
You can override parameters using projectParamsMap.param if it's not getting the correct value.
The ${domain} param will be mapped to a value from projectDomains. For example:
"projectDomains": {
"foo-domain": [ "foo-project-a", "foo-project-b" ],
"bar-domain": [ "bar-project-a", "bar-project-b" ]
}Overriding parameters
"paramOverrides": { "foo-project": { "appRoot": "overridden-app-root", "staticRoute": "overridden-static-root", "zkGroup": "overridden-zk-group" } },
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago