File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ mv dev/.* dev/* ./ && rmdir dev
1616bin/console react-server:http
1717````
1818
19+ Open your browser on port ` 8080 `
20+
1921### Development Mode
2022
2123To run it in dev mode you can run ` config:development-mode ` command
@@ -30,6 +32,14 @@ Or you can do it by hand renaming from `config/services/dependencies.dev.yaml.di
3032mv config/services/dependencies.dev.yaml.dist config/services/dependencies.dev.yaml
3133````
3234
35+ ### Hot Code Reloading
36+
37+ You can use [ Php whatcher] ( https://github.com/seregazhuk/php-watcher ) with composer for more friendly development.
38+
39+ ```` bash
40+ composer watch
41+ ````
42+
3343![ Default homepage] ( https://getting-started.antidotfw.io/images/default-homepage.jpg )
3444
3545Open another console and check the built-in Cli tool
Original file line number Diff line number Diff line change 3838 "phpstan/phpstan" : " ^0.11.5" ,
3939 "phpunit/phpunit" : " ^8.0" ,
4040 "roave/security-advisories" : " dev-master" ,
41+ "seregazhuk/php-watcher" : " ^0.5.1" ,
4142 "squizlabs/php_codesniffer" : " ^3.4" ,
4243 "symfony/var-dumper" : " ^4.2" ,
4344 "zendframework/zend-component-installer" : " ^2.1"
6162 "cs-check" : " phpcs src --colors" ,
6263 "cs-fix" : " phpcbf src --colors" ,
6364 "inspect" : " phpstan analyse src -l7 --ansi" ,
64- "test" : " phpunit --colors=always"
65+ "test" : " phpunit --colors=always" ,
66+ "watch" : " php-watcher bin/console --arguments react-server:http --delay 5 --ansi"
6567 },
6668 "config" : {
6769 "sort-packages" : true
Original file line number Diff line number Diff line change 1+ watch:
2+ - src
3+ - config
4+ extensions:
5+ - php
6+ - yml
7+ ignore:
8+ - tests
You can’t perform that action at this time.
0 commit comments