From 7e1f343bec0cf7ddaa3f3f786e77faf323aba4bb Mon Sep 17 00:00:00 2001 From: "Shlomi Assaf (shlassaf)" Date: Tue, 14 Jun 2016 18:05:32 +0300 Subject: [PATCH] fix: github publishing --- package.json | 3 ++- scripts/gh-pages.sh | 17 +++-------------- src/components/angular2-modal/package.json | 2 +- src/index.ghpages.html | 21 +++++++++++++++++++++ 4 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 src/index.ghpages.html diff --git a/package.json b/package.json index a54555f5..0cfe2cac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "angular2-modal", "description": "Angular2 Modal (dialog) window.", - "version": "1.0.3", + "version": "1.0.4", "repository": { "type": "git", "url": "https://github.com/shlomiassaf/angular2-modal.git" @@ -54,6 +54,7 @@ "exports-loader": "0.6.2", "expose-loader": "^0.7.1", "file-loader": "^0.8.4", + "gh-pages": "^0.11.0", "gulp": "^3.9.0", "gulp-inline-ng2-template": "^1.1.3", "gulp-shell": "^0.5.1", diff --git a/scripts/gh-pages.sh b/scripts/gh-pages.sh index c99fb1ae..e8a7f4df 100755 --- a/scripts/gh-pages.sh +++ b/scripts/gh-pages.sh @@ -1,16 +1,5 @@ -originBranch=$(git symbolic-ref --short -q HEAD) - npm run build -git checkout gh-pages - -branch=$(git symbolic-ref --short -q HEAD) -if [ "$branch" = "gh-pages" ]; then - cp -R ./dist/build/* ./ - git add . - git commit -m "gh-pages update" - git push origin gh-pages -else - echo Error: could not checkout gh-pages -fi -git checkout $originBranch \ No newline at end of file +rm ./dist/build/index.html +cp -R ./src/index.ghpages.html ./dist/build/index.html +gh-pages -d dist/build \ No newline at end of file diff --git a/src/components/angular2-modal/package.json b/src/components/angular2-modal/package.json index 043575e9..70e0f43f 100644 --- a/src/components/angular2-modal/package.json +++ b/src/components/angular2-modal/package.json @@ -1,7 +1,7 @@ { "name": "angular2-modal", "description": "Angular2 Modal (dialog) window.", - "version": "1.0.3", + "version": "1.0.4", "repository": { "type": "git", "url": "https://github.com/shlomiassaf/angular2-modal.git" diff --git a/src/index.ghpages.html b/src/index.ghpages.html new file mode 100644 index 00000000..d2c95b76 --- /dev/null +++ b/src/index.ghpages.html @@ -0,0 +1,21 @@ + + + + + + + + + Angular 2 Modal - Bootstrap style. + + + + + + + Loading, with SystemJS in dev mode, it might take a minute (or 2...) + + + + + \ No newline at end of file