diff --git a/.angular-cli.json b/.angular-cli.json index 6425a0701..7c5153da7 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -9,7 +9,9 @@ "root": "src", "outDir": "dist", "assets": [ - "assets", + "assets/favicon", + "assets/icons", + "assets/locale", "contexts" ], "index": "index.html", diff --git a/package.json b/package.json index 9f348b8d6..2fb275b8c 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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",