FriendsOfSymfony / FOSCKEditorBundle

Provides a CKEditor integration for your Symfony project.
Other
519 stars 83 forks source link

ckeditor:install only runs when not same version #203

Open SimonHeimberg opened 4 years ago

SimonHeimberg commented 4 years ago

Feature Request

Please support running ckeditor:install --clear=skip-if-matching. This is is like --clear=skip if the tag/custom-build-id/... matches, and like --clear=drop (or --clear=keep?) else.

my work around for fixed tag:

in the auto-scripts, I run the following command:

"version=4.6.2 cmd='./bin/console ckeditor:install --quiet --clear=drop' sh -c 'if ! grep -qs version.*$version vendor/friendsofsymfony/ckeditor-bundle/src/Resources/public/package.json; then echo \" \" running $cmd --tag=$version; $cmd --tag=$version; fi'": "script"

the command more readable:

version=4.6.2 \
cmd='./bin/console ckeditor:install --quiet --clear=drop' \
sh -c '
    if ! grep -qs version.*$version vendor/friendsofsymfony/ckeditor-bundle/src/Resources/public/package.json;
        then echo \" \" running $cmd --tag=$version; $cmd --tag=$version;
    fi
'