diff --git a/.gitignore b/.gitignore index 235f2e5..f642fda 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ node_modules/ # build files package-lock.json ._build +public/js/Game.min.js diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4e1dbe7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ +// The number of spaces a tab is equal to. This setting is overridden +// based on the file contents when `editor.detectIndentation` is true. +"editor.tabSize": 4, + +// Insert spaces when pressing Tab. This setting is overriden +// based on the file contents when `editor.detectIndentation` is true. +"editor.insertSpaces": true, + +// When opening a file, `editor.tabSize` and `editor.insertSpaces` +// will be detected based on the file contents. Set to false to keep +// the values you've explicitly set, above. +"editor.detectIndentation": false +} \ No newline at end of file diff --git a/README.md b/README.md index 4294edd..c373a62 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ domino-game é jogo de dominó online feito em html5,node.js e websocket. ```bash -git clone https://github.com/felipefm32/NodeDomino.git +git clone https://github.com/eufelipemateus/NodeDomino.git ``` ```bash @@ -38,4 +38,4 @@ Veja Mais [Aqui](https://felipemateus.com/blog/2017/06/domino). ## Author -**[Felipe Mateus](https://felipemateus.com)** - [Felipefm32](https://github.com/felipefm32) \ No newline at end of file +**[Felipe Mateus](https://felipemateus.com)** - [Felipefm32](https://github.com/eufelipemateus) \ No newline at end of file diff --git a/package.json b/package.json index 89dde12..c13ed6c 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,13 @@ "node": "10.18.0" }, "scripts": { - "build": "tslint --project . && tsc", + "build": "tslint --project . && tsc --declaration && npm run minify", "serve": "nodemon --watch \"src/**/*\" -e ts --exec \"ts-node -r tsconfig-paths/register\" ./src/Server.ts", "start": "node ./._build/Server.js", "pm2:start": "pm2 start ./._build/Server.js --name dominio-felipefm32", "lint:ts:base": "tslint --project tsconfig.json --config tslint.json", - "lint:ts": "npm run lint:ts:base \"src/**/*.ts\"" + "lint:ts": "npm run lint:ts:base \"src/**/*.ts\"", + "minify": "jsmin -o public/js/Game.min.js public/js/Game.js" }, "repository": { "type": "git", @@ -41,15 +42,16 @@ "socket.io": "^2.2.0" }, "devDependencies": { - "@types/socket.io": "^2.1.2", + "@types/dotenv": "8.2.0", "@types/node": "^7.0.5", + "@types/socket.io": "^2.1.2", + "jsmin": "^1.0.1", + "lint-staged": "9.5.0", "nodemon": "^1.11.0", - "typescript": "3.7.2", - "@types/dotenv": "8.2.0", "ts-node": "3.3.0", "tsconfig-paths": "3.9.0", "tslint": "5.7.0", - "lint-staged": "9.5.0" + "typescript": "3.7.2" }, "bugs": { "url": "https://github.com/felipefm32/NodeDomino/issues" diff --git a/public/index.html b/public/index.html index 1a49a5c..2cf5085 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,7 @@ +