![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sirocco-wc
Advanced tools
Scaffolding Tool for the fusion of lit with tailwind. DRY development in the speed of light with the zero configuration build tool parcel, playwright and jest testing. jenkinsCI ready.
This tool helps you to develop with lit, tailwind, playwright, and parcel. It provides not only scaffolding but as well the infrastructure to generate component-specific style definitions. Further, our defaults are ready for being used in a Jenkins plugin.
I was looking for a word that unifies tailwind with lit. A Mediterranean wind that comes from the Sahara and reaches hurricane speeds in North Africa and Southern Europe, is the definition of sirocco and since I wrote it based in Sevilla, I found it fitting. 😁
npm i -g sirocco-wc
You should install the tool globally so you can use it to generate node based projects with the init
command.
You can set different environments variable to change the default configuration of this tool, which you can find in bin/config.js
:
const defaultComponentType = process.env.SWC_TYPE || 'components';
const prefix = process.env.SWC_PREFIX || 'swc-';
const index = process.env.SWC_INDEX || 'index.ts';
const srcDir = process.env.SWC_SRC || `src/main/ts`
const cssDir = process.env.SWC_CSS || `${srcDir}\/\*\*\/\*.css`
sirocco-wc --version
sirocco-wc help
COMMANDS — Type 'sirocco-wc help <command>' to get some help about a command
sirocco-wc ["init" || "i"]
Scaffolding your project to add the infrastructure needed to develop as described in the README of the template.
This structure allows to quickly develop with lit and tailwind. Further our defaults are ready for being used in a jenkins plugin. It will further direcly migrate to yarn 2 and install some recommended plugins.
...but wait there is still more to the template:
.option("-t, --type ", "Component Type", { default: defaultComponentType, })
sirocco-wc ["add"||"a"] newcomponent [-t componentType || 'components']
This will create a new component (or the componentType
you have chosen) and link it in the project hierarchy.
For example if you want to create a new view you can do:
sirocco-wc add myview -t views
sirocco-wc ["buildCss"||"bc"]
Will generate style definitions so they can be imported into your web components. The files are optimized to only include some general tailwind plugins and the classes you may defined in your css or template.
sirocco-wc ["watchCss"||"wc"]
Will watch css and ts files and invoke the rebuild in case they have changed.
In case you have not yet a node based project installed, you can use the init command, however, be aware that it will override existing files.
mkdir test
cd test
sirocco-wc i
After this you will need to create a first component and then the entry file that you have defined in the init command. You can use yarn :add test
to use the prefix that you have choosen in the init command.
sirocco-wc a test
echo "export * from './components/index';" > src/main/ts/index.ts
The last step is to update the index.html
that was generated earlier to use your first web component.
<body>
<swc-test></swc-test>
</body>
Once you have the basic structure set up, you can either use the project commands or the sirocco-wc once.
First, you need to run the local dev server.
yarn start
"css:build": "sirocco-wc bc",
"css:watch": "sirocco-wc wc",
":add": "SWC_PREFIX=my-sirocco- sirocco-wc a"
FAQs
Scaffolding Tool for the fusion of lit with tailwind. DRY development in the speed of light with the zero configuration build tool parcel, playwright and jest testing. jenkinsCI ready.
The npm package sirocco-wc receives a total of 871 weekly downloads. As such, sirocco-wc popularity was classified as not popular.
We found that sirocco-wc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.