t3-dev-watch
v1.0.2
Published
Ein Node.js-Projekt, das global installierbar ist und mit dem Befehl 't3-dev-watch' gestartet werden kann.
Downloads
4
Readme
t3-dev-watcher
t3-dev-watcher is a command-line utility that watches for changes in specific file types within a specified directory and automatically runs a set of tasks when a change is detected. It is designed to work with TYPO3 projects, but can be adapted for other use cases as well.
Usage without installation
npx t3-dev-watch -e sql,php
Installation
npm i -g t3-dev-watch
Features
Watches for changes in specified file types Automatically runs a set of tasks when a change is detected Debounces tasks to avoid multiple executions within a short time frame Configurable file types and tasks
Usage
To use t3-dev-watcher, run the following command:
t3-dev-watch [options]
Options
--e <file_types> or --extensions <file_types>: Specifies the file types to watch for changes. Example: t3-dev-watch --e sql,php,css
-r or --root: Watch the current directory instead of the default packages subdirectory.
Example usage:
To watch for changes in SQL, PHP, and CSS files within the packages subdirectory:
t3-dev-watch --e sql,php,css
To watch for changes in SQL files within the current directory:
t3-dev-watch --e sql -r
Tasks
const tasksToRun = [
'php ./typo3cms cache:flush',
'php ./typo3cms database:updateschema',
];