Files
ionic-framework/scripts/seed/publish.sh
Andy Joslin 55089042d8 chore(build): documentation generation
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
2014-03-07 13:36:36 -07:00

44 lines
868 B
Bash
Executable File

echo "#####################################"
echo "# Update ionic-angular-cordova-seed #"
echo "#####################################"
ARG_DEFS=(
"--version=(.*)"
)
function init {
TMP_DIR=$SCRIPT_DIR/../../tmp
BUILD_DIR=$SCRIPT_DIR/../../dist
SEED_DIR=$TMP_DIR/seed
rm -rf $SEED_DIR
mkdir -p $SEED_DIR
}
function run {
cd ../..
rm -rf $SEED_DIR
mkdir -p $SEED_DIR
echo "-- Cloning ionic-angular-cordova-seed..."
git clone \
https://$GH_ORG:$GH_TOKEN@github.com/$GH_ORG/ionic-angular-cordova-seed.git \
$SEED_DIR \
--depth=10
cd $SEED_DIR
echo "-- Updating files..."
cp -Rf $BUILD_DIR/* $SEED_DIR/www/lib/
git add -A
git commit -am "release: update ionic to v$VERSION"
git push -q origin master
echo "-- ionic-angular-cordova-seed files update to v$VERSION successfully!"
}
source $(dirname $0)/../utils.inc