dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
638 B
26 lines
638 B
1 year ago
|
#!/bin/bash
|
||
|
|
||
|
# Important: make sure to run the script in the root folder of the repo:
|
||
|
# ./scripts/renegerate-translations.sh
|
||
|
# otherwise the script could delete the wrong folder
|
||
|
|
||
|
echo ""
|
||
|
|
||
|
echo "Run flutter pub get.."
|
||
|
flutter pub get
|
||
|
echo ""
|
||
|
|
||
|
echo "Remove the folder: lib/src/gen/flutter_gen"
|
||
|
rm -rf lib/src/gen/flutter_gen
|
||
|
|
||
|
echo ""
|
||
|
echo "Copy the folder: ./.dart_tool/flutter_gen to lib/src/gen/"
|
||
|
cp -r ./.dart_tool/flutter_gen lib/src/gen/
|
||
|
|
||
|
echo ""
|
||
|
echo "Delete unnecessary file: lib/src/gen/flutter_gen/pubspec.yaml"
|
||
|
rm lib/src/gen/flutter_gen/pubspec.yaml
|
||
|
|
||
|
echo ""
|
||
|
echo "Apply dart fixes to the newly generated files"
|
||
|
dart fix --apply
|