Fix jQuery import being added with every postinstall script
This commit is contained in:
parent
8947c030ed
commit
11018736d3
|
@ -36,7 +36,7 @@ tasks:
|
||||||
VUE_EDITOR: code
|
VUE_EDITOR: code
|
||||||
before: cd front
|
before: cd front
|
||||||
init: |
|
init: |
|
||||||
[ -d "node_modules" ] || yarn install
|
yarn install
|
||||||
yarn run i18n-compile
|
yarn run i18n-compile
|
||||||
command: yarn dev --host 0.0.0.0 --base /front/
|
command: yarn dev --host 0.0.0.0 --base /front/
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,9 @@ echo "Replacing hardcoded values by CSS vars…"
|
||||||
scripts/fix-fomantic-css.py "$FOMANTIC_SRC_PATH" "$FOMANTIC_SRC_PATH/tweaked"
|
scripts/fix-fomantic-css.py "$FOMANTIC_SRC_PATH" "$FOMANTIC_SRC_PATH/tweaked"
|
||||||
|
|
||||||
echo 'Fixing jQuery import…'
|
echo 'Fixing jQuery import…'
|
||||||
|
|
||||||
|
# shellcheck disable=SC2046
|
||||||
|
sed -i '1s/^import jQuery from "jquery"//' $(find "$FOMANTIC_SRC_PATH" -name '*.js')
|
||||||
|
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
sed -i '1s/^/import jQuery from "jquery"\n/' $(find "$FOMANTIC_SRC_PATH" -name '*.js')
|
sed -i '1s/^/import jQuery from "jquery"\n/' $(find "$FOMANTIC_SRC_PATH" -name '*.js')
|
||||||
|
|
Loading…
Reference in New Issue