Skip to content

Commit

Permalink
fix: github publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Assaf (shlassaf) committed Jun 14, 2016
1 parent 6f33627 commit 7e1f343
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
3 changes: 2 additions & 1 deletion 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"
Expand Down Expand Up @@ -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",
Expand Down
17 changes: 3 additions & 14 deletions 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
rm ./dist/build/index.html
cp -R ./src/index.ghpages.html ./dist/build/index.html
gh-pages -d dist/build
2 changes: 1 addition & 1 deletion 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"
Expand Down
21 changes: 21 additions & 0 deletions src/index.ghpages.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/angular2-modal/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Angular2 modal example.">
<title>Angular 2 Modal - Bootstrap style.</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>


<app>
Loading, with SystemJS in dev mode, it might take a minute (or 2...)
</app>

<script src="system.config.js"></script>
</body>
</html>

0 comments on commit 7e1f343

Please sign in to comment.