diff --git a/CHANGELOG.md b/CHANGELOG.md index b3b3fd0..1a2091f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.25 + +- Update template: `lib/src/template/bones_api_template.tar.gz` + ## 1.0.24 - `TableFieldReference` and `TableFieldReference` now also have the fields type. diff --git a/lib/src/template/bones_api_template.tar.gz b/lib/src/template/bones_api_template.tar.gz index 057da46..cd0b885 100644 Binary files a/lib/src/template/bones_api_template.tar.gz and b/lib/src/template/bones_api_template.tar.gz differ diff --git a/pubspec.yaml b/pubspec.yaml index 6ee2c36..42af56c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: bones_api description: Bones_API - A Powerful API backend framework for Dart. Comes with a built-in HTTP Server, routes handler, entity handler, SQL translator, and DB adapters. -version: 1.0.24 +version: 1.0.25 homepage: https://github.com/Colossus-Services/bones_api environment: diff --git a/update_project_template.sh b/update_project_template.sh new file mode 100755 index 0000000..fc62a13 --- /dev/null +++ b/update_project_template.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +TEMPLATE_DIR="../bones_api_template" +TEMPLATE_TAR_GZ="./lib/src/template/bones_api_template.tar.gz" + +if [ ! -d "$TEMPLATE_DIR" ] +then + echo "Directory $TEMPLATE_DIR DOES NOT exists!" + echo "Get it at GitHub!" + exit 1 +fi + + +if [ -f "$TEMPLATE_TAR_GZ" ] +then + echo "Template file already exists: $TEMPLATE_TAR_GZ" + echo "Remove it first:" + echo "" + echo " rm $TEMPLATE_TAR_GZ" + echo "" + exit 1 +fi + +dart pub global activate project_template + +dart run project_template prepare -d "$TEMPLATE_DIR" -o "$TEMPLATE_TAR_GZ" -r "^\.git" -r "\.DS_Store$"