Browse Source

add license file; update dependencies; production build

romanmatiasko 4 years ago
parent
commit
abe7faa9be

+ 21 - 0
LICENSE.md

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Roman Matiasko
+
+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.

+ 1 - 3
README.md

@@ -8,6 +8,4 @@ You can play the game on [www.retichess.com](http://wwww.retichess.com/).
 License
 -------
 
-(c) 2015 Roman Matiasko
-
-Available under [the MIT License (MIT)](http://opensource.org/licenses/MIT).
+Available under [the MIT License (MIT)](./LICENSE.md).

+ 0 - 2
app.js

@@ -4,7 +4,6 @@ import express from 'express';
 import path from 'path';
 import winston from './winston';
 import bodyParser from 'body-parser';
-import cookieParser from 'cookie-parser';
 import favicon from 'serve-favicon';
 import logger from 'morgan';
 import routes from './routes/routes';
@@ -19,7 +18,6 @@ app.use(favicon(path.join(__dirname, 'dist/img/favicon.png')));
 app.use(logger('dev'));
 app.use(bodyParser.json());
 app.use(bodyParser.urlencoded({extended: true}));
-app.use(cookieParser());
 app.use(express.static(staticPath));
 app.use('/', routes);
 

File diff suppressed because it is too large
+ 1 - 1
dist/css/main.css


BIN
dist/img/knight.psd


BIN
dist/img/logo.png


File diff suppressed because it is too large
+ 0 - 3
dist/js/app.js


File diff suppressed because it is too large
+ 8 - 0
dist/js/index.js


File diff suppressed because it is too large
+ 12 - 0
dist/js/play.js


BIN
dist/snd/check.mp3


BIN
dist/snd/message.mp3


BIN
dist/snd/move.mp3


+ 3 - 1
gulpfile.js

@@ -31,7 +31,9 @@ var dependencies = [
   'flux',
   'eventemitter2',
   'chess.js',
-  'lodash.omit'
+  'lodash.omit',
+  'socket.io-client',
+  'es6-shim'
 ];
 
 var browserifyTask = function() {

+ 9 - 8
package.json

@@ -8,23 +8,24 @@
     "deploy": "NODE_ENV=production gulp"
   },
   "dependencies": {
-    "babel": "^4.6.6",
+    "babel": "^4.7.8",
     "body-parser": "^1.12.0",
     "debug": "^2.1.2",
-    "express": "^4.12.1",
-    "immutable": "^3.6.2",
+    "express": "^4.12.2",
+    "immutable": "^3.6.4",
     "jade": "^1.9.2",
     "morgan": "^1.5.1",
     "serve-favicon": "^2.2.0",
-    "socket.io": "^1.3.4",
+    "socket.io": "^1.3.5",
     "winston": "^0.9.0"
   },
   "devDependencies": {
-    "babelify": "^5.0.3",
+    "babelify": "^5.0.4",
     "browserify": "^9.0.3",
     "chess.js": "^0.1.0",
     "classnames": "^1.1.4",
     "es6-shim": "^0.27.1",
+    "eventemitter2": "^0.4.14",
     "flux": "^2.0.1",
     "gulp": "^3.8.11",
     "gulp-autoprefixer": "^2.1.0",
@@ -38,9 +39,9 @@
     "gulp-uglify": "^1.1.0",
     "gulp-util": "^3.0.4",
     "lodash.omit": "^3.0.0",
-    "react": "^0.12.2",
-    "socket.io-client": "^1.3.4",
-    "vinyl-source-stream": "^1.0.0",
+    "react": "^0.13.0",
+    "socket.io-client": "^1.3.5",
+    "vinyl-source-stream": "^1.1.0",
     "watchify": "2.4.0"
   },
   "engines": {

+ 1 - 1
src/css/_base.scss

@@ -116,7 +116,7 @@ strong {
 }
 
 h1 {
-  font-family: 'Cherry Swash';
+  font-family: 'Cherry Swash', cursive;
   font-weight: 400;
   font-size: 2rem;
   text-align: center;

+ 1 - 1
src/css/_chat.scss

@@ -7,7 +7,7 @@
   background: lighten($grey, 5%);
 
   h4 {
-    font-family: 'Cherry Swash';
+    font-family: 'Cherry Swash', cursive;
     font-size: 1.225rem;
     height: 3em;
     line-height: 3em;

+ 1 - 1
src/css/_chessboard.scss

@@ -19,7 +19,7 @@
   float: left; 
 
   thead {
-    font-family: 'Cherry Swash';
+    font-family: 'Cherry Swash', cursive;
     width: 270px;
     height: 3em;
     line-height: 3em;

+ 1 - 1
src/css/_index.scss

@@ -70,7 +70,7 @@
 }
 
 #game-status {
-  font-family: 'Cherry Swash';
+  font-family: 'Cherry Swash', cursive;
   font-size: 1.275rem;
   color: darken($red, 5%);
   width: 100%;

+ 1 - 1
src/js/components/GameInterface.js

@@ -40,7 +40,7 @@ const GameInterface = React.createClass({
     io.on('token-invalid', () => this.setState({
       modal: this.state.modal
         .set('open', true)
-        .set('message', 'Game link is invalid or has expired')
+        .set('message', 'Game link is invalid or has expired.')
         .set('type', 'info')
     }));
 

+ 2 - 2
views/layout.jade

@@ -12,8 +12,8 @@ html(lang='en')
     meta(name='description', content='A lightweight real-time chess app built in Node, Express, Socket.IO, React, Flux and Immutable.')
     meta(name='viewport', content='width=device-width, initial-scale=1')
     link(rel='shortcut icon', href='/img/favicon.png')
+    link(rel='stylesheet', type='text/css' href='http://fonts.googleapis.com/css?family=Cherry+Swash:400|Open+Sans:400,600&subset=latin')
     link(rel='stylesheet', href='/css/main.css')
-    link(href='http://fonts.googleapis.com/css?family=Cherry+Swash|Open+Sans:400,600', rel='stylesheet', type='text/css')
 
   body
     #container-wrapper.clearfix
@@ -22,7 +22,7 @@ html(lang='en')
     footer
       #footer.clearfix
         p.center 2015  –  Reti Chess is distributed under 
-          a(href='http://opensource.org/licenses/MIT') the MIT License
+          a(href='http://github.com/romanmatiasko/reti-chess/blob/master/LICENSE.md') the MIT License
           |   –  
           a(href='http://github.com/romanmatiasko/reti-chess') Github