
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
twig-components-example
Advanced tools
An example Twig Component library using Webpack.
This project was originally generated using generator-twig-components-webpack.
To run a local webserver that shows how these components can be used, run
npm install && npm start
.
To use these components on your site, include dist/components.bundled.js
on
the page and any of the included component tags. For example:
<html>
<head>
<script src="./twig-components-example/components.bundled.js"></script>
</head>
<body>
<tce-hero src="hero.jpg" text="Great intro" subtext="Better follow up" callout-text="Click me" callout-href="/submit" align="middle"></tce-hero>
</body>
</html>
Should render the tce-hero
tag.
If you prefer to manage polyfills and the Twig.js library yourself, you can
include components.js
.
To execute the entire production Webpack build, run npm run build
.
Tests are written with the web-component-tester package.
Before running tests, you'll need to setup your local environment:
PATH
npm install -g bower rollup web-component-tester
After all dependencies have been installed, run npm test
.
FAQs
An example Twig Component library using Webpack.
The npm package twig-components-example receives a total of 6 weekly downloads. As such, twig-components-example popularity was classified as not popular.
We found that twig-components-example 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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.