mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-24 21:44:08 -05:00
Install bower packages and brunch build on npm install.
`npm run dev` now gives you a brunch watch that is also running the dev server
This commit is contained in:
parent
57c5384ec1
commit
2275c78b2d
3 changed files with 14 additions and 5 deletions
|
@ -43,6 +43,10 @@ exports.config =
|
||||||
watcher:
|
watcher:
|
||||||
usePolling: true
|
usePolling: true
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 3000
|
||||||
|
path: 'server.coffee'
|
||||||
|
|
||||||
files:
|
files:
|
||||||
javascripts:
|
javascripts:
|
||||||
defaultExtension: 'coffee'
|
defaultExtension: 'coffee'
|
||||||
|
|
|
@ -32,7 +32,11 @@
|
||||||
"start": "node ./index.js",
|
"start": "node ./index.js",
|
||||||
"test": "./node_modules/.bin/karma start",
|
"test": "./node_modules/.bin/karma start",
|
||||||
"predeploy": "echo Starting deployment--hold onto your butts.; echo Skipping brunch build --production",
|
"predeploy": "echo Starting deployment--hold onto your butts.; echo Skipping brunch build --production",
|
||||||
"postdeploy": "echo Deployed. Unclench."
|
"postdeploy": "echo Deployed. Unclench.",
|
||||||
|
"postinstall": "bower install && brunch build",
|
||||||
|
"brunch": "brunch",
|
||||||
|
"bower": "bower",
|
||||||
|
"dev": "brunch watch --server"
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -8,11 +8,12 @@ http = require 'http'
|
||||||
log = require 'winston'
|
log = require 'winston'
|
||||||
serverSetup = require './server_setup'
|
serverSetup = require './server_setup'
|
||||||
|
|
||||||
module.exports.startServer = ->
|
module.exports.startServer = (port, path, callback) ->
|
||||||
app = createAndConfigureApp()
|
app = createAndConfigureApp()
|
||||||
http.createServer(app).listen(app.get('port'))
|
port = port or app.get('port')
|
||||||
log.info('Express SSL server listening on port ' + app.get('port'))
|
http.createServer(app).listen(port, callback)
|
||||||
app
|
log.info('Express SSL server listening on port ' + port)
|
||||||
|
http
|
||||||
|
|
||||||
createAndConfigureApp = ->
|
createAndConfigureApp = ->
|
||||||
serverSetup.setupLogging()
|
serverSetup.setupLogging()
|
||||||
|
|
Loading…
Reference in a new issue