
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
generator-element
Advanced tools

A Yeoman Generator that provides a functional boilerplate to easily create Custom Elements using Polymer, X-Tag or VanillaJS.
All templates are based in the boilerplates authored by the WebComponent.org team:
Install this generator using NPM:
$ [sudo] npm install -g generator-element

There are two different generators available.
The first one used to scaffold out new individual elements:
$ yo element:elements ```
```
[?] What do you want to use? [?] What's the name of your element? [?] Do you want to include lifecycle callbacks? ```
Which will generate the following file:
```
. └── my-element.html ```
The second one is used to scaffold an entire project:
$ yo element:app ```
```
[?] What do you want to use? [?] What's the GitHub repository? [?] What's your GitHub username? [?] What's the name of your element? [?] How would you describe the element? [?] Do you want to include lifecycle callbacks? [?] Do you want to include some useful Grunt tasks? ```
Which will generate the following project structure:
```
. ├── .editorconfig ├── .gitignore ├── bower.json ├── package.json ├── index.html ├── Gruntfile.js └── src/my-element.html ```
And run `bower install` & `npm install` for you to fetch all dependencies.
Note: files will be generated in the current directory, so be sure to change to a new directory before running those commands if you don't want to overwrite existing files.
git checkout -b my-new-featuregit commit -m 'Add some feature'git push origin my-new-featureFor detailed changelog, see Releases.
This project is maintained by these people and a bunch of awesome contributors.
|
--- | --- | --- | --- | ---
Zeno Rocha | Addy Osmani
MIT License © WebComponents.org
FAQs
Yeoman generator to create Custom Elements using Polymer, X-Tag or VanillaJS
We found that generator-element demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.