Skip to content

Commit 8706870

Browse files
authored
Merge pull request #19 from PHPRio/feature/configurar-watch
Configurar watch
2 parents 63c115e + cd16300 commit 8706870

File tree

9 files changed

+10577
-710
lines changed

9 files changed

+10577
-710
lines changed

.docker/entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
usermod --non-unique --uid "${HOST_UID}" www-data
55
groupmod --non-unique --gid "${HOST_GID}" www-data
66

7-
87
if [ ! -d "vendor" ]; then
98
composer install
109
fi
1110

12-
./vendor/bin/jigsaw serve --host=0.0.0.0
11+
if [ ! -d "node_modules" ]; then
12+
npm ci
13+
fi
14+
15+
npm run watch

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ npm-debug.log
99
# Optional ignores
1010
# /build_staging/
1111
# /build_production/
12-
# /source/assets/build/
12+
/source/assets/build/

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ services:
66
args:
77
- NODE_MAJOR=${NODE_MAJOR:-20}
88
ports:
9-
- "127.0.0.1:${HTTP_PORT:-8000}:8000"
9+
- "127.0.0.1:${HTTP_PORT:-3000}:3000"
10+
- "127.0.0.1:${HTTP_PORT:-3001}:3001"
1011
volumes:
1112
- .:/var/www/html
1213
environment:

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"prod": "mix --production"
88
},
99
"devDependencies": {
10+
"browser-sync": "^2.29.3",
11+
"browser-sync-webpack-plugin": "^2.3.0",
1012
"laravel-mix": "^6.0.39",
1113
"laravel-mix-jigsaw": "^2.0.0",
1214
"postcss": "^8.4.14",

0 commit comments

Comments
 (0)