-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Greegko
committed
Apr 12, 2018
0 parents
commit bd2f677
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
src/ | ||
tests/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const { myContainer } = require('./dist/injection.config'); | ||
const gameController = myContainer.get('GameController'); | ||
|
||
const newState = gameController.gameTurn(); | ||
|
||
if(newState.general.turn !== 1) { | ||
console.log('Turn does not match!'); | ||
console.log(newState); | ||
} else { | ||
console.log('Integration is fine!'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "@greegko/rpg-village", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"test:watch:integration": "tsc-watch --onSuccess 'node ./integration.test.js'", | ||
"build": "npm run build:clear && npm run build:src", | ||
"build:src": "tsc", | ||
"build:clear": "rm -dR ./dist" | ||
}, | ||
"dependencies": { | ||
"@greegko/rpg-model": "0.*", | ||
"inversify": "4.11.1", | ||
"ramda": "^0.24.1", | ||
"shortid": "2.2.8", | ||
"reflect-metadata": "0.1.12" | ||
}, | ||
"devDependencies": { | ||
"@types/ramda": "^0.24.13", | ||
"tsc-watch": "^1.0.17", | ||
"typescript": "2.8.1" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"main": "dist/index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import { } from '@greegko/rpg-model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"removeComments": false, | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"noUnusedLocals": true, | ||
"noImplicitAny": false, | ||
"declaration": true, | ||
"outDir": "dist/", | ||
"lib": [ | ||
"es2015" | ||
] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
] | ||
} | ||
|