Skip to content

Commit

Permalink
Update version to out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Nov 29, 2017
1 parent 53e5448 commit 334ab8b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ pubspec.lock

.idea

# Deploy script results
deploy_staging/

# GitHub Wiki
*.wiki/
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "compiled_mustache"
description: "Native support for pre-compiled mustache templates"
author: "thislooksfun <thislooksfun@repbot.com>"
homepage: "https://github.com/thislooksfun/compiled_mustache"
version: "1.0.0-beta2"
version: "1.0.0"
dev_dependencies:
test: "^0.12.27"
benchmark_harness: ">=1.0.0 <2.0.0"
Expand Down
48 changes: 40 additions & 8 deletions scripts/deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,44 @@

set -ev

git clone https://github.com/thislooksfun/compiled_mustache.wiki.git
grind doc_benchmark_wiki
cd compiled_mustache.wiki
git add -A
git commit -m "Update Benchmarks"
git push

# TODO: Hide scripts/ directory before running this
# git clone https://github.com/thislooksfun/compiled_mustache.wiki.git
# grind doc_benchmark_wiki
# cd compiled_mustache.wiki
# git add -A
# git commit -m "Update Benchmarks"
# git push

# If it already exists, clean it out
if [ -d "deploy_staging" ]; then
rm -rf "deploy_staging"
fi

mkdir "deploy_staging"

function cp_dep() {
if [ -d "$1" ]; then
cp -r "$1" "deploy_staging/$1"
else
cp "$1" "deploy_staging/"
fi
}

# Folders
cp_dep "benchmark"
cp_dep "doc"
cp_dep "example"
cp_dep "lib"
cp_dep "test"

# Files
cp_dep ".gitignore"
cp_dep ".gitmodules"
cp_dep "CHANGELOG.md"
cp_dep "LICENSE"
cp_dep "pubspec.yaml"
cp_dep "README.md"

cd "deploy_staging"

# TODO: Hide scripts/ and tool/ directories before running this
# pub publish --dry-run

0 comments on commit 334ab8b

Please sign in to comment.