
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.
Scaffolding CLI for Shopware 6 that creates plugins, elements and much more.
Shopware Advanced Generator (swag) is a scaffolding CLI that helps you to created plugins, themes and other pieces of code, such as CMS blocks and elements.
It is designed to work with Shopware 6.
Disclaimer
This is a community project and not officially supported by Shopware.
Install the CLI by executing the following command in a root environment:
$ npm -g @hrwg/swag
To get a list of all available commands, use the following command:
$ swag --help
The following commands are used to work with Shopware 6 plugins.
In order to create a new plugin, execute the following command from
your projects root directory (the directory that contains the custom/plugins
):
$ swag plugin:create
This will guide you through an inquiry that will query all the required details for creating a plugin.
After the command finishes, your new plugin will be created in the
custom/plugins
directory and is ready for installation/activation.
The following commands are used to work with Shopware 6 CMS blocks.
In order to create a new CMS block, execute the following command from your plugin's root directory.
$ swag cms:block:create
This will guide you through an inquiry that will query all the required details for creating a CMS block.
After the command finishes, your new block will be created within your plugin's directory.
Important
To make the CMS element work, you have to include it in your
src/Resources/app/administration/src/main.js
file and execute an administration build. This is not done automatically at the moment.
Unit tests are powered by Jest and can be run after cloning the repository:
$ npm ci
$ npm t
Feel free to contribute to this project by submitting a document pull-requests that passes existing tests.
For a detailed changelog, refer to the CHANGELOG.md.
MIT
FAQs
Scaffolding CLI for Shopware 6 that creates plugins, elements and much more.
The npm package @hrwg/swag receives a total of 0 weekly downloads. As such, @hrwg/swag popularity was classified as not popular.
We found that @hrwg/swag 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
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.