Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .cursor/rules/commands.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
description: Describes how to create and register new commands
globs: src/command/*.ts
alwaysApply: false
---
- Commands are located in `src/command` directory
- Commands must extend the [Command.ts](mdc:src/command/Command.ts) abstract class or any other class that inherits it
- Command name must be defined in format: `magentoToolbox.commandName`
- New commands must be added to [index.ts](mdc:src/command/index.ts) file so that they are loaded. Commands also need to be added to [package.json](mdc:package.json) under contributes -> commands
- Commands that only generate files based on a pre-defined template can extend the [SimpleTemplateGeneratorCommand.ts](mdc:src/command/SimpleTemplateGeneratorCommand.ts) class
11 changes: 11 additions & 0 deletions .cursor/rules/tests.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
description: Describes how to write tests
globs: *.test.ts
alwaysApply: false
---
- Tests are located in the src/test directory
- Utilities for tests can be found in this file [util.ts](mdc:src/test/util.ts)
- Some parts of the extension require the ExtensionContext to be present. To make sure it's set, tests should run the setup function from [setup.ts](mdc:src/test/setup.ts)
- Tests are written using Mocha framework (`mocha` package) in Typescript and must end with .test.ts file extension. Do NOT use `chai`
- Test spies, stubs and mocks can be written using the Sinon.js library
- Reference files for tests are stored in the test-resources directory
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ All notable changes to the "magento-toolbox" extension will be documented in thi

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.2.0]
## [Unreleased]

- Added: Jump to module command
- Changed: All dropdown inputs now support searching
- Changed: Migrated ejs templates to handlebars

## [1.2.0] - 2025-03-13

- Added: Generator command for sample Layout XML file
- Added: Generator command for sample page_types.xml file
Expand All @@ -20,7 +26,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
- Added: Generator command for sample system.xml file
- Added: Generator command for sample config.xml file

## [1.1.3] - 3/12/2025
## [1.1.3] - 2025-03-12

- Fixed: Block, observer, plugin and preference class generation fails if class name includes backslashes
- Fixed: Composer.json license is not capitalized
Expand All @@ -29,19 +35,19 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
- Fixed: Preference type attribute does not include full class namespace
- Chore: Added unit tests for generator commands

## [1.1.2] - 2/27/2025
## [1.1.2] - 2025-02-27

- Fixed: Module generator creates an invalid registration.php file

## [1.1.1] - 2/27/2025
## [1.1.1] - 2025-02-27

- Fixed: urn catalog not generated in dockerized environments
- Fixed: codegen fails in multi-folder workspaces

## [1.1.0] - 2/25/2025
## [1.1.0] - 2025-02-25

- Added preference generation command

## [1.0.0] - 2/24/2025
## [1.0.0] - 2025-02-24

- Initial release
151 changes: 66 additions & 85 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading