@@ -52,7 +52,7 @@ generate_mo() {
52
52
generate_css () {
53
53
# You can not use --production because it creates the error "[BABEL]: Cannot find module 'browserslist'"
54
54
yarn install --frozen-lockfile --non-interactive --silent
55
- if [ -d ./public/ ]; then
55
+ if [ -f ./bin/console ]; then
56
56
git add --force public/themes/* /css/* .css || echo " No css file found, not adding to git repository"
57
57
git add --force public/themes/* /css/* .css.map || echo " No css.map files found, not adding to git repository"
58
58
else
@@ -67,7 +67,7 @@ generate_css() {
67
67
generate_js () {
68
68
# You can not use --production because it creates the error "[BABEL]: Cannot find module 'browserslist'"
69
69
yarn install --frozen-lockfile --non-interactive --silent
70
- if [ -d ./public/ ]; then
70
+ if [ -f ./bin/console ]; then
71
71
git add --force public/js/dist/ || echo " No JS files found, not adding to git repository"
72
72
else
73
73
git add --force js/dist/ || echo " No JS files found, not adding to git repository"
@@ -103,7 +103,16 @@ set_version_in_composer() {
103
103
104
104
reset_not_allowed_to_change_source_files () {
105
105
# Source: https://stackoverflow.com/a/68019875/5155484
106
- if [ -d ./public/ ]; then
106
+
107
+ if [ -f yarn-error.log ]; then
108
+ rm -v yarn-error.log
109
+ fi
110
+
111
+ # Source: https://stackoverflow.com/a/2196755/5155484
112
+ echo " Cleaning ignored files"
113
+ git clean -fdX
114
+
115
+ if [ -f ./bin/console ]; then
107
116
CHANGED_FILES=" $( git diff phpmyadmin/$branch ..$newbranch --name-only -- ' ./*' ' :!README.rst' ' :!public/js/dist/*.js' ' :!public/js/dist/*.js.map' ' :!resources/locale/*.mo' ' :!public/themes/*.css' ' :!public/themes/*.css.map' ) "
108
117
else
109
118
CHANGED_FILES=" $( git diff phpmyadmin/$branch ..$newbranch --name-only -- ' ./*' ' :!README.rst' ' :!js/dist/*.js' ' :!js/dist/*.js.map' ' :!locale/*.mo' ' :!themes/*.css' ' :!themes/*.css.map' ) "
0 commit comments