Skip to content

Commit a39450d

Browse files
Merge pull request #73 from magebitcom/release
Release
2 parents 0f9e741 + 84ec4cb commit a39450d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+367
-259
lines changed

.cursor/rules/commands.mdc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
description: Describes how to create and register new commands
3+
globs: src/command/*.ts
4+
alwaysApply: false
5+
---
6+
- Commands are located in `src/command` directory
7+
- Commands must extend the [Command.ts](mdc:src/command/Command.ts) abstract class or any other class that inherits it
8+
- Command name must be defined in format: `magentoToolbox.commandName`
9+
- 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
10+
- Commands that only generate files based on a pre-defined template can extend the [SimpleTemplateGeneratorCommand.ts](mdc:src/command/SimpleTemplateGeneratorCommand.ts) class

.cursor/rules/tests.mdc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
description: Describes how to write tests
3+
globs: *.test.ts
4+
alwaysApply: false
5+
---
6+
- Tests are located in the src/test directory
7+
- Utilities for tests can be found in this file [util.ts](mdc:src/test/util.ts)
8+
- 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)
9+
- Tests are written using Mocha framework (`mocha` package) in Typescript and must end with .test.ts file extension. Do NOT use `chai`
10+
- Test spies, stubs and mocks can be written using the Sinon.js library
11+
- Reference files for tests are stored in the test-resources directory

CHANGELOG.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ All notable changes to the "magento-toolbox" extension will be documented in thi
44

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

7-
## [1.2.0]
7+
## [Unreleased]
8+
9+
- Added: Jump to module command
10+
- Changed: All dropdown inputs now support searching
11+
- Changed: Migrated ejs templates to handlebars
12+
13+
## [1.2.0] - 2025-03-13
814

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

23-
## [1.1.3] - 3/12/2025
29+
## [1.1.3] - 2025-03-12
2430

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

32-
## [1.1.2] - 2/27/2025
38+
## [1.1.2] - 2025-02-27
3339

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

36-
## [1.1.1] - 2/27/2025
42+
## [1.1.1] - 2025-02-27
3743

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

41-
## [1.1.0] - 2/25/2025
47+
## [1.1.0] - 2025-02-25
4248

4349
- Added preference generation command
4450

45-
## [1.0.0] - 2/24/2025
51+
## [1.0.0] - 2025-02-24
4652

4753
- Initial release

package-lock.json

Lines changed: 66 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)