
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
A simple and small tool for quickly creating application components from templates by script.
A simple and small tool for quickly creating application components from templates by script.
npm install ebo --saveDev
or npm install ebo --global
./.ebo/questions.js
"use strict";
const questions = [
{
"type": "list",
"name": "scenario",
"message": "Scenario:",
"choices": ["Component", "Markup"]
},
{
"type": "list",
"name": "hierarchy",
"message": "Atomic hierarchy:",
"choices": ["Organism", "Group"],
"when": (e) => {
return e["scenario"] === "Component"
}
},
{
"type": "list",
"name": "type",
"message": "Markup type: ",
"choices": ["Page", "Popup"],
"when": (e) => {
return e["scenario"] === "Markup"
}
},
{
"type": "input",
"name": "name",
"message": "Name with spaces:"
}
];
module.exports = questions;
More information: https://www.npmjs.com/package/inquirer
./.ebo/scripts.json
[
{
"condition": "answers.scenario.given === 'Component'",
"action": "new",
"src": "./.ebo/component.js.twig",
"dest": "./example/component/{{answers.hierarchy.lower}}/{{answers.name.camel}}.js"
},
{
"condition": "answers.scenario.given === 'Markup'",
"action": "new",
"src": "./.ebo/markup.html.twig",
"dest": "./example/markup/{{answers.type.lower}}/{{answers.name.camel}}.html"
},
{
"condition": "answers.scenario.given === 'Component'",
"action": "inject",
"expression": "//@ebo inject {{answers.hierarchy.lower}}",
"place": "before",
"src": "const {{answers.hierarchy.lower}}{{answers.name.firstCamel}} = require('./component/{{answers.hierarchy.lower}}/{{answers.name.camel}}');\n",
"dest": "./example/main.js"
}
]
./.ebo/component.js.twig
"use strict";
console.log("{{answers.hierarchy.lower}}", "{{answers.name.camel}}");
More information: https://www.npmjs.com/package/twig
ebo
FAQs
A simple and small tool for quickly creating application components from templates by script.
The npm package ebo receives a total of 0 weekly downloads. As such, ebo popularity was classified as not popular.
We found that ebo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.