Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-7411 Added chartjs-plugin-datalabels package #20

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions bin/prepare_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ MOMENT_NOTICE="$MOMENT_DIR/MOMENT_IN_EZPLATFORMADMINUIASSETS.txt"
MOMENT_TIMEZONE_DIR="$VENDOR_DIR/moment-timezone"
MOMENT_TIMEZONE_NOTICE="$MOMENT_TIMEZONE_DIR/MOMENT_TIMEZONE_IN_EZPLATFORMADMINUIASSETS.txt"
D3_DIR="$VENDOR_DIR/d3"
D3_NOTICE="$D3_DIR/D3_IN_EZPLATFORMUIASSETS.txt"
D3_NOTICE="$D3_DIR/D3_IN_EZPLATFORMADMINUIASSETS.txt"
DAGRE_D3_DIR="$VENDOR_DIR/dagre-d3"
DAGRE_D3_NOTICE="$DAGRE_D3_DIR/DAGRE_D3_IN_EZPLATFORMUIASSETS.txt"
DAGRE_D3_NOTICE="$DAGRE_D3_DIR/DAGRE_D3_IN_EZPLATFORMADMINUIASSETS.txt"
JS_MD5_DIR="$VENDOR_DIR/js-md5"
JS_MD5_NOTICE="$JS_MD5_DIR/JS_MD5_IN_EZPLATFORMUIASSETS.txt"
JS_MD5_NOTICE="$JS_MD5_DIR/JS_MD5_IN_EZPLATFORMADMINUIASSETS.txt"
CHART_JS_DIR="$VENDOR_DIR/chart-js"
CHART_JS_NOTICE="CHART_JS_IN_EZPLATFORMADMINUIASSETS.txt"
CHARTJS_PLUGIN_DATALABELS_DIR="$VENDOR_DIR/chartjs-plugin-datalabels"
CHARTJS_PLUGIN_DATALABELS_NOTICE="CHARTJS_PLUGIN_DATALABELS_IN_EZPLATFORMADMINUIASSETS.txt"

CURRENT_BRANCH=`git branch | grep '*' | cut -d ' ' -f 2`
TMP_BRANCH="version_$VERSION"
Expand Down Expand Up @@ -182,6 +186,19 @@ check_process "clean js-md5"
echo "This is a customized js-md5 version." > $JS_MD5_NOTICE
echo "To decrease the size of the bundle, it includes production-only files" >> $JS_MD5_NOTICE

echo "# Removing unused files from chart-js"
rm -rf ""
check_process "clean chart-js"
echo "This is a customized chart-js version." > $CHART_JS_NOTICE
echo "To decrease the size of the bundle, it includes production-only files" >> $CHART_JS_NOTICE

echo "# Removing unused files from chartjs-plugin-datalabels"
rm -rf ""
check_process "clean chartjs-plugin-datalabels"
echo "This is a customized chartjs-plugin-datalabels version." > $CHARTJS_PLUGIN_DATALABELS_NOTICE
echo "To decrease the size of the bundle, it includes production-only files" >> $CHARTJS_PLUGIN_DATALABELS_NOTICE


echo "# Creating the custom branch: $TMP_BRANCH"
git checkout -q -b "$TMP_BRANCH" > /dev/null
check_process "create the branch '$TMP_BRANCH'"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"move-d3": "cp -r node_modules/d3 src/bundle/Resources/public/vendors/d3",
"move-dagre-d3": "cp -r node_modules/dagre-d3 src/bundle/Resources/public/vendors/dagre-d3",
"move-chart-js": "cp -r node_modules/chart.js src/bundle/Resources/public/vendors/chart-js",
"move-chartjs-plugin-datalabels": "cp -r node_modules/chartjs-plugin-datalabels src/bundle/Resources/public/vendors/chartjs-plugin-datalabels",
"move-js-md5": "cp -r node_modules/js-md5 src/bundle/Resources/public/vendors/js-md5",
"move-ckeditor5": "cp -r node_modules/@ckeditor src/bundle/Resources/public/vendors/@ckeditor",
"prepare-release": "npm run create-folder; npm run move-bootstrap; npm run move-jquery; npm run move-leaflet; npm run move-react; npm run move-react-dom; npm run move-taggify; npm run move-popperjs; npm run move-flatpickr; npm run move-create-react-class; npm run move-prop-types; npm run move-moment; npm run move-moment-timezone; npm run move-d3; npm run move-dagre-d3; npm run move-chart-js; npm run move-js-md5; npm run move-ckeditor5"
"prepare-release": "npm run create-folder; npm run move-bootstrap; npm run move-jquery; npm run move-leaflet; npm run move-react; npm run move-react-dom; npm run move-taggify; npm run move-popperjs; npm run move-flatpickr; npm run move-create-react-class; npm run move-prop-types; npm run move-moment; npm run move-moment-timezone; npm run move-d3; npm run move-dagre-d3; npm run move-chart-js; npm run move-js-md5; npm run move-ckeditor5; npm run move-chartjs-plugin-datalabels"
},
"repository": {
"type": "git",
Expand All @@ -40,6 +41,7 @@
"@ckeditor/ckeditor5-code-block": "^40.1.0",
"bootstrap": "^5.3.2",
"chart.js": "^4.4.0",
"chartjs-plugin-datalabels": "^2.2.0",
"create-react-class": "^15.7.0",
"d3": "^5.16.0",
"dagre-d3": "^0.6.4",
Expand Down