Skip to content

Commit

Permalink
updated package json + readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmugharajk committed Mar 22, 2020
2 parents 7c335f7 + c5850e3 commit a2e4c79
Show file tree
Hide file tree
Showing 11 changed files with 2,657 additions and 12,918 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": [
"js"
]
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 shanmugharaj

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Navigate to the root directory and run the following.

yarn install

yarn run build:common

yarn run run-server

yarn run run-client
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"name": "react-card-game",
"private": true,
"workspaces": {
"packages": ["packages/*"]
"packages": [
"packages/*"
]
},
"scripts": {
"run-client": "cd ./packages/web && yarn start",
"run-server": "cd ./packages/game-server && yarn start",

"run:client": "cd ./packages/web && yarn start",
"run:server": "cd ./packages/game-server && yarn start",
"build:client": "cd ./packages/web && yarn run build",
"build:common": "cd ./packages/common && yarn run build",
"build:server": "cd ./packages/game-server && yarn run build"
}
}
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@rcg/common",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"repository": "https://[email protected]/shansfk/react-card-game.git",
"repository": "https://github.com/shanmugharajk/react-card-game.git",
"version": "1.0.0",
"license": "MIT",
"scripts": {
Expand Down
8 changes: 2 additions & 6 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": false,
"skipLibCheck": true,
"baseUrl": "..",
"paths": {
"@abb/*": ["./*/src"]
}
"skipLibCheck": true
},
"exclude": ["node_modules"],
"include": ["./src/**/*.tsx", "./src/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/game-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@rcg/game-server",
"version": "1.0.0",
"main": "index.js",
"repository": "https://[email protected]/shansfk/react-card-game.git",
"repository": "https://github.com/shanmugharajk/react-card-game.git",
"author": "shanmugharajk <[email protected]>",
"license": "MIT",
"devDependencies": {
Expand Down Expand Up @@ -33,4 +33,4 @@
"test": "jest",
"build": "rimraf ./dist && tsc"
}
}
}
13 changes: 4 additions & 9 deletions packages/game-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"outDir": "dist",
"lib": [
"es2015",
"dom"
]
"lib": ["es2015", "dom"]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
}
"include": ["src/**/*.ts", "src/**/*.tsx"],
"paths": { "@rcg/common": "../common/src" }
}
Loading

0 comments on commit a2e4c79

Please sign in to comment.