Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Greegko committed Apr 12, 2018
0 parents commit bd2f677
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/
tests/
node_modules/
11 changes: 11 additions & 0 deletions integration.test.js
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!');
}
25 changes: 25 additions & 0 deletions package.json
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"
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import { } from '@greegko/rpg-model';
23 changes: 23 additions & 0 deletions tsconfig.json
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"
]
}

0 comments on commit bd2f677

Please sign in to comment.