Skip to content

Commit

Permalink
Merge pull request #41 from ardeearam/v1.5.0
Browse files Browse the repository at this point in the history
V1.5.0
  • Loading branch information
ardeearam authored Apr 19, 2023
2 parents 8fa98d4 + 4dbdccb commit b604e8b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions RELEASE.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.5.0
* Add the S3.js file, which includes presigned URL's upload, among other things.
* Execute migrations inside plugins

# v1.4.1
* Disable Cloudwatch errors when not being used

Expand Down
13 changes: 10 additions & 3 deletions dist/scripts/db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,22 @@ case $1 in
echo '{"data": []}' > /tmp/migrate-acc.json


#Reduce all migration fiels in one big fie - KlaudSol Commons
for migration in $(ls $SCRIPT_PATH/db/migrations/*); do
#Reduce all migration files in one big fie - KlaudSol Commons
for migration in $(ls $SCRIPT_PATH/db/migrations/*.json); do
BASENAME=$(basename $migration)
echo "{\"filename\": \"$BASENAME\"}" > /tmp/migrate-filename.json
echo $($SCRIPT_PATH/scripts/base64cat.sh /tmp/migrate-acc.json $migration /tmp/migrate-filename.json | node $SCRIPT_PATH/scripts/migrations-reducer.js) > /tmp/migrate-acc.json
done

#Reduce all migration files in one big file - Project Specific
for migration in $(ls db/migrations/*); do
for migration in $(ls db/migrations/*.json); do
BASENAME=$(basename $migration)
echo "{\"filename\": \"$BASENAME\"}" > /tmp/migrate-filename.json
echo $($SCRIPT_PATH/scripts/base64cat.sh /tmp/migrate-acc.json $migration /tmp/migrate-filename.json | node $SCRIPT_PATH/scripts/migrations-reducer.js) > /tmp/migrate-acc.json
done

#Reduce all migration files in one big file - Plugins
for migration in $(ls db/migrations/plugins/*.json); do
BASENAME=$(basename $migration)
echo "{\"filename\": \"$BASENAME\"}" > /tmp/migrate-filename.json
echo $($SCRIPT_PATH/scripts/base64cat.sh /tmp/migrate-acc.json $migration /tmp/migrate-filename.json | node $SCRIPT_PATH/scripts/migrations-reducer.js) > /tmp/migrate-acc.json
Expand Down
1 change: 1 addition & 0 deletions dist/scripts/plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [[ "$MODE" == "build" || "$MODE" == "cleanup" || "$MODE" == "info" ]]; then
if [[ "$MODE" == "build" ]]; then
cp -r ${plugin_directory}/pages pages/plugins/${PLUGIN_NAME} || true
cp -r ${plugin_directory}/pages/api pages/api/plugins/${PLUGIN_NAME} || true
cp -r ${plugin_directory}db/migrations/* db/migrations/plugins || true

#Remove the API handler here, it is redundant and causes build problems
rm -Rf pages/plugins/${PLUGIN_NAME}/api || true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klaudsol/commons",
"version": "1.4.1",
"version": "1.5.0",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down

0 comments on commit b604e8b

Please sign in to comment.