Skip to content

Commit

Permalink
adding license and some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lostpebble committed Apr 3, 2017
1 parent ed6a681 commit 0a0f08b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
24 changes: 24 additions & 0 deletions UNLICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <http://unlicense.org>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "koa-mobx-react-starter",
"version": "1.0.0",
"license": "Unlicense",
"repository": "https://github.com/lostpebble/koa-mobx-react-bootstrap",
"description": "A straightforward starter for Node javascript web projects. Using Koa, MobX, Pug and ReactJS (with universal / isomorphic server rendering)",
"main": "index.js",
Expand All @@ -14,7 +15,6 @@
"dev": "cross-env NODE_ENV=development nodemon ./src/server/babel-server.js"
},
"author": "Paul Myburgh",
"license": "ISC",
"dependencies": {
"babel-register": "^6.14.0",
"bluebird": "^3.4.6",
Expand Down
14 changes: 14 additions & 0 deletions src/server/babel-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
// using the server babel settings
process.env.BABEL_ENV = "server";

// Use babel so we can use a higher
// version of JS on the server
require('babel-register');

// Change the default babel promise
// implementation to use bluebird
// (often seen as the best implementation)
require('babel-runtime/core-js/promise').default = require('bluebird');

// Use isomorphic-fetch, which is a fetch
// implementation that works the same on
// server and browser
require('isomorphic-fetch');

// Require our actual server file - which
// will be transformed thanks to babel-register
// above (and according to the .babelrc settings)
require('./server');

0 comments on commit 0a0f08b

Please sign in to comment.