
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@evoo/plugin-file-templates
Advanced tools
The File Templates plugin for the Evoo CLI offers a powerful way to reuse content across your scaffolds. It extends the functionality of the existing `file` job, allowing you to define a set of templates in your `evoo.json` and then reference them, keepin
The File Templates plugin for the Evoo CLI offers a powerful way to reuse content across your scaffolds. It extends the functionality of the existing file job, allowing you to define a set of templates in your evoo.json and then reference them, keeping your configurations clean and maintainable.
file jobs.templates object within the sharedContext.file jobs without requiring a new job type.To use the File Templates plugin, you need to define your templates in the sharedContext and then reference them in your file jobs.
See the Job's common properties.
sharedContextIn your evoo.json, add a templates object to the sharedContext. Each key in this object is a template name, and its value is the content you want to reuse.
In a file job, set the content property to a string starting with @@ followed by the template name (e.g., @@myTemplate). The plugin will replace this string with the corresponding content from your templates object.
{
"plugins": ["file-templates"],
"sharedContext": {
"templates": {
"reactComponent": "import React from 'react';\n\nconst MyComponent = () => {\n return <div>Hello, World!</div>;\n};\n\nexport default MyComponent;",
"packageJson": "{\n \"name\": \"my-cool-project\",\n \"version\": \"1.0.0\"\n}"
}
},
"jobs": [
{
"type": "file",
"name": "src/components/MyComponent.tsx",
"content": "@@reactComponent"
},
{
"type": "file",
"name": "package.json",
"content": "@@packageJson"
}
]
}
When this scaffold is run, src/components/MyComponent.tsx will be created with the content of the reactComponent template, and package.json will be created with the content of the packageJson template.
FAQs
The File Templates plugin for the Evoo CLI offers a powerful way to reuse content across your scaffolds. It extends the functionality of the existing `file` job, allowing you to define a set of templates in your `evoo.json` and then reference them, keepin
We found that @evoo/plugin-file-templates demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.