Skip to content

Commit

Permalink
chore(ghpages): add auto-generated ghpages (#193)
Browse files Browse the repository at this point in the history
* chore(ghpages): add auto-generated ghpages

* add version in message
  • Loading branch information
mbarbeau authored Apr 6, 2017
1 parent e87f1a5 commit 17aa9a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"assets/favicon",
"assets/icons",
"assets/locale",
"contexts"
],
"index": "index.html",
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"preversion": "npm run tests.all && npm run clean && npm run build.prod",
"version": "npm run changelog && git add -A CHANGELOG.md",
"postversion": "git push && git push --tags && rimraf igo2.zip && cd ./dist/prod/ && zip -r ../igo2.zip ./*"
"postversion": "git push && git push --tags && rimraf igo2.zip && cd ./dist/prod/ && zip -r ../igo2.zip ./* && npm run ghpages",
"preghpages": "npm run build.prod -- --output-path ./dist/ghpages --bh /igo2/ && echo \"include: ['_default.json', '_contexts.json']\" > dist/ghpages/_config.yml",
"ghpages": "VERSION=$(node -p -e \"require('./package.json').version\") && ngh --dir=dist/ghpages --no-silent=false --message=$VERSION",
"postghpages": "rimraf ./dist/ghpages"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -82,6 +85,7 @@
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.60",
"@types/openlayers": "^4.0.1",
"angular-cli-ghpages": "^0.5.0",
"codelyzer": "~2.0.0",
"compodoc": "0.0.41",
"conventional-changelog-cli": "^1.3.1",
Expand Down

0 comments on commit 17aa9a4

Please sign in to comment.