1.0.0 • Published 4 years ago

magento2-generated-watcher v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Magento 2 Generated Watcher

File watcher for Magento 2 development

The purpose of this package is to improve the Magento 2 development process.

The package watches for changes to .php files in the app/code folder and removes the related generated files in generated/code, resulting in Magento recompiling the affected code.

This method is significantly faster than using the Magento CLI command setup:di:compile, which recompiles the entire codebase.

Quickstart

The package can be installed using NPM, either per project or globally.

Project installation

Install the package
$ npm install magento2-generated-watcher

Run the watcher
$ ./node_modules/magento2-generated-watcher/dist/index.js generated-watcher

Global installation

Install the package globally
$ npm install -g magento2-generated-watcher

Run the watcher
$ cd /magento-base-path
$ generated-watcher
1.0.0

4 years ago