Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(build): need to copy .git using cp -r
Browse files Browse the repository at this point in the history
Note this should be a chore but I need to test semantic-release
  • Loading branch information
pmuir committed Feb 25, 2017
1 parent 19efd2a commit 43c207a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cico_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mkdir -p dist && docker run --detach=true --name=ngx-login-client-builder -e "FA
# In order to run semantic-release we need a non detached HEAD, see https://github.com/semantic-release/semantic-release/issues/329
docker exec ngx-login-client-builder git checkout master
# Try to fix up the git repo so that npm publish can build the gitHead ref in to package.json
docker exec ngx-login-client-builder sh -c ./fix-git-repo.sh
docker exec ngx-login-client-builder ./fix-git-repo.sh

# Build almigty-ui
docker exec ngx-login-client-builder npm install
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"cleanup": "rimraf dist/package.json dist/bundles dist/src dist/index.d.ts dist/index.metadata.json dist/index.js dist/index.js.map dist/LICENSE dist/README.md",
"commitmsg": "validate-commit-msg",
"copy-files": "copyfiles LICENSE README.md package.json dist && copyfiles src/**/*.css dist && copyfiles src/**/*.html dist",
"copy-dist-files": "copyfiles LICENSE README.md package.json .git/** index.js dist",
"copy-dist-files": "copyfiles LICENSE README.md package.json index.js dist",
"minify": "uglifyjs dist/bundles/login.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/login.umd.min.js",
"reinstall": "npm run clean && npm install",
"remove-dist": "rimraf dist",
"rimraf": "rimraf",
"test": "karma start",
"transpile": "./node_modules/.bin/ngc",
"semantic-release": "semantic-release pre && npm run build && npm publish dist/ && semantic-release post"
"semantic-release": "semantic-release pre && npm run build && cp -r .git dist && npm publish dist/ && semantic-release post"
},
"license": "Apache-2.0",
"contributors": [
Expand Down Expand Up @@ -76,7 +76,6 @@
"@angular/core": "2.2.3",
"@angular/http": "2.2.3",
"@angular/router": "3.2.3",
"@krux/condition-jenkins": "^1.0.1",
"@types/jasmine": "2.5.41",
"@types/lodash": "4.14.49",
"angular2-load-children-loader": "^0.1.3",
Expand Down

0 comments on commit 43c207a

Please sign in to comment.