Skip to content

Commit

Permalink
Source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Aho committed Oct 31, 2015
1 parent ca177e0 commit 3efa2f6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "GPL-3.0",
"description": "Leap Motion gesture input mapper",
"main": "index.html",
"node-remote": "127.0.0.1",
"scripts": {
"nw-gyp": "nw-gyp/bin/nw-gyp.js",
"coffee": "node_modules/coffee-script/bin/coffee",
Expand All @@ -26,6 +27,7 @@
"gulp": "^3.9.0",
"gulp-coffee": "^2.3.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-util": "^3.0.7",
"nw-gyp": "^0.12.3"
},
"repository": {
Expand Down
8 changes: 5 additions & 3 deletions server/etc/process-config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"apps" : [{
"name": "leapgim-server",
"script": "server/index.js",
"script": "src/FrameController.coffee",
"cwd": "server",
"autorestart": true,
"restart_delay": 4000,
"exec_mode": "fork_mode",
"exec_interpreter": "node",
"watch": false,
"exec_interpreter": "coffee",
"watch": true,
"merge_logs": true
}]
}
4 changes: 2 additions & 2 deletions server/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ var gulp = require('gulp')
gulp.task('compile-coffee', function () {
gulp.src('./src/*.coffee')
.pipe(sourcemaps.init())
.pipe(coffee())
.pipe(sourcemaps.write())
.pipe(coffee({ bare: true })).on('error', gutil.log)
.pipe(sourcemaps.write("./maps"))
.pipe(gulp.dest('./lib'));
});
gulp.task('reload', function() {
Expand Down
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"gulp": "^3.9.0",
"gulp-coffee": "^2.3.1",
"gulp-sourcemaps": "^1.6.0"
"gulp-sourcemaps": "^1.6.0",
"source-map-support": "^0.3.3"
}
}

0 comments on commit 3efa2f6

Please sign in to comment.