Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
generator-clay-component
Advanced tools
A yeoman generator for Clay components!
npm install --global generator-clay-component
Or you can use the yeoman interactive menu!
First, make sure you're running this generator from the root directory of your Clay instance!
To create a new component, simply call the generator with the component's name. Make sure to use kebab-case!
yo clay-component foo-bar
The generator will ask you a few short questions, then spin up the new component in your components/foo-bar
folder.
comment
, for a component that lives in the <head>
)client.js
with a dollar-slice controllerserver.js
and server.test.js
for you do logic on GET
and PUT
Interactive prompts are nice, but who has the time? My twitter feed won't read itself!
You can also use command line flags for all of these options:
--desc <words>
or -d <words>
– description--tag <tag name>
or -t <tag name>
– tag (note: you can also specify custom tags this way!)--client
or -c
– if you want client scripts--server
or -c
– if you want server scriptsIf you're a speed daemon, your component might look like this:
yo clay-component fizz-buzz-enterprise -d "FizzBuzz Enterprise Edition" -t article -cs
We're busy people, so we probably missed something! Let us know by submitting an issue, or better yet submit a pull request with a failing test. We use linting tools and unit tests, which are built constantly using continuous integration.
FAQs
A yeoman generator for Clay components!
The npm package generator-clay-component receives a total of 0 weekly downloads. As such, generator-clay-component popularity was classified as not popular.
We found that generator-clay-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.