Compile all the coffee-script files once after installing, rather than on each run.

This commit is contained in:
Page 2014-04-27 22:49:00 +01:00 committed by Pablo Carranza Vélez
parent 7e25bfe91a
commit 1c209fa827
2 changed files with 1 additions and 1 deletions

View File

@ -3,6 +3,7 @@
"version": "0.0.1",
"scripts": {
"preinstall": "bash deps.sh",
"postinstall": "node ./node_modules/coffee-script/bin/coffee -c ./src",
"start": "node src/supervisor.js"
},
"dependencies": {

View File

@ -2,7 +2,6 @@ process.on('uncaughtException', function (e) {
console.log('Got unhandled exception', e)
})
require('coffee-script/register');
var knex = require('./db')
// Wait for the DB schema to be created