Skip to content

Commit

Permalink
Merge branch 'next' into grey_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Tryneus committed Jan 11, 2016
2 parents 00ed43a + b0beff1 commit d1a6af6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions client/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
'use strict'

let fs = require('fs')
Expand All @@ -25,6 +23,10 @@ function compile(watching) {
// All source files need to be babelified first
sourceMapRelative: '.', // source maps will be relative to this dir
})
.transform('uglifyify', {
// uglify all sources, not just application code
global: true,
})

if (watching) {
bundler.on('update', function() {
Expand All @@ -38,7 +40,7 @@ function compile(watching) {
} else {
bundler.on('log', msg => {
console.log(msg)
process.exit(0)
bundler.close()
})
}

Expand Down
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"exorcist": "^0.4.0",
"mocha": "^2.3.3",
"rx": "^4.0.7",
"uglifyify": "^3.0.1",
"underscore": "^1.8.3",
"watchify": "^3.6.1"
},
Expand Down
5 changes: 4 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fusion-server",
"version": "0.0.1",
"description": "Server for RethinkDB fusion",
"description": "Server for RethinkDB Project Fusion",
"main": "main.js",
"scripts": {
"test": "./node_modules/.bin/mocha --compilers js:babel-core/register test/test.js test/schema.js"
Expand All @@ -12,6 +12,9 @@
},
"author": "RethinkDB",
"license": "MIT",
"bin": {
"fusion": "./src/main.js"
},
"bugs": {
"url": "https://github.com/rethinkdb/fusion/issues"
},
Expand Down
1 change: 1 addition & 0 deletions server/src/main.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node --harmony-destructuring
'use strict';

const fusion = require('./server');
Expand Down

0 comments on commit d1a6af6

Please sign in to comment.