From 63e9c2eb4cf18184ad943ead3d0fd8d9431bc8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20I=2E=20Silva?= Date: Sat, 5 Sep 2015 15:19:54 -0500 Subject: [PATCH] publish demo --- README.md | 4 +++- deploy-gh-pages.sh | 21 +++++++++++++++++++++ tests/dummy/config/environment.js | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 deploy-gh-pages.sh diff --git a/README.md b/README.md index 236fecd..bfc6d97 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,12 @@ like this: ``` {{#twitter-feed}} - + {{/twitter-feed}} ``` +Demo: http://aethermx.github.io/ember-cli-twitter-feed/ + ## Development ### Installation diff --git a/deploy-gh-pages.sh b/deploy-gh-pages.sh new file mode 100755 index 0000000..7c052bc --- /dev/null +++ b/deploy-gh-pages.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +addonName='ember-cli-twitter-feed' + +ember build --environment='production' + +cd '../'$addonName'-gh-pages/' + +rm -rvf assets + +cp -Rv '../'$addonName'/dist/'* . + +git add -A . + +git commit -m 'update' + +git push -u origin gh-pages + +exit diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index ecbb96a..2d75fe6 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -40,7 +40,7 @@ module.exports = function(environment) { } if (environment === 'production') { - + ENV.baseURL = '/ember-cli-twitter-feed/'; } ENV.contentSecurityPolicy = {