mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Main changes: * Use gulpfile now (build was getting way too disorganized with custom tasks; gulpfiles are much easier to build clean custom tasks with than Grunt. * View README#Development for updated commands * Docs written for ionContent, ionHeaderBar, ionInfiniteScroll. * Docs are pushed to ajoslin's fork of ionic-site until they reach a * point where they can be published. **TODO, In Order of Priority** 1. Finish writing source-documentation for all existing components 2. Add multiple versions of docs (one per release & nightly, latest stable release docs being shown by default) 3. Add examples generation 4. Add searchbar to docs
39 lines
913 B
Bash
Executable File
39 lines
913 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Inspired by AngularJS's finalize-version script
|
|
# Run by travis when it detects a commit that changes package.json version
|
|
|
|
ARG_DEFS=(
|
|
"[--remote=(.*)]"
|
|
"--codename=(.*)"
|
|
"--version=(.*)"
|
|
)
|
|
|
|
function init {
|
|
cd ../..
|
|
|
|
REMOTE=$REMOTE || "origin"
|
|
CODENAME=$(readJsonProp "package.json" "codename")
|
|
|
|
replaceJsonProp "bower.json" "version" "$VERSION"
|
|
replaceJsonProp "component.json" "version" "$VERSION"
|
|
|
|
replaceJsonProp "bower.json" "codename" "$CODENAME"
|
|
replaceJsonProp "component.json" "codename" "$CODENAME"
|
|
|
|
echo "-- Putting built files into release folder"
|
|
mkdir -p release
|
|
cp -Rf dist/* release
|
|
|
|
git add -A
|
|
git commit -m "release: v$VERSION \"$CODENAME\""
|
|
git tag -f -m "v$VERSION" v$VERSION
|
|
|
|
git push $REMOTE master
|
|
git push -q $REMOTE v$VERSION
|
|
|
|
echo "-- v$VERSION \"$CODENAME\" pushed to ionic#master successfully!"
|
|
}
|
|
|
|
source $(dirname $0)/../utils.inc
|