Skip to content

Commit c858f0c

Browse files
committed
added release script
1 parent 213a3a1 commit c858f0c

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ testem.log
4242
# System Files
4343
.DS_Store
4444
Thumbs.db
45+
46+
poker-release/
47+
poker-release.zip

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
Open source implementation of planning poker game.
44

5+
- The game has three roles: admin, players, observers.
6+
- Cards: 0, 0.5, 1, 2, 3, 5, 10, 20 (gonna make it configurable)
7+
- Self-contained, can be run in closed intranet environments.
8+
59
The project is built on Angular 5. It uses [http-shared-storage](https://github.com/yarosla/httpstorage)
610
backend to store session data.
711

8-
Self-contained, can be run in closed intranet environments.
9-
1012
## Quick Start
1113

12-
1. Download release archive from Releases page. Unpack it.
13-
2. Run command:
14+
1. Download release archive from [Releases](https://github.com/yarosla/poker/releases) page. Unpack it.
15+
2. Run commands:
1416

17+
cd poker-release
1518
java -jar http-shared-storage-1.0.jar -P 8080 -s poker
1619

1720
3. Point your browser to `http://localhost:8080/index.html`

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"ng": "ng",
77
"start": "ng serve",
88
"build": "ng build --prod",
9+
"release": "ng build --prod && rm -rf poker-release && mkdir poker-release && mv dist poker-release/poker && cp ../http-shared-storage/build/libs/http-shared-storage-1.0.jar poker-release && 7z a -tzip poker-release.zip poker-release",
910
"test": "ng test",
1011
"lint": "ng lint",
1112
"e2e": "ng e2e"

src/app/join-session/join-session.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class JoinSessionComponent implements OnInit {
1919
ngOnInit() {
2020
}
2121

22-
joinSession(name) {
22+
joinSession(name?: string) {
2323
this.route.params
2424
.map(params => {
2525
console.debug('params', params);

0 commit comments

Comments
 (0)