Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closes #90. support building from lower directory and fix for git bash o... #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist/test
TODO.txt
node_modules
doc/public
.idea
13 changes: 11 additions & 2 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
fs = require 'fs'
{exec} = require 'child_process'
util = require 'util'
path = require 'path'

binDir = "./node_modules/.bin/"
cakefileDirectory = (dir) ->
return dir if fs.existsSync path.join dir, 'Cakefile'
parent = path.normalize path.join dir, '..'
return cakefileDirectory parent unless parent is dir
throw new Error "Cakefile not found in #{process.cwd()}"

cakeDir = cakefileDirectory global.__originalDirname

binDir = cakeDir + "/node_modules/.bin/"

task 'watch', 'Watch for changes in coffee files to build and test', ->
util.log "Watching for changes in src and test"
Expand Down Expand Up @@ -53,7 +62,7 @@ task 'build:doc', 'Build docco documentation', ->

task 'build:test', 'Build the test files into lib/test', ->
util.log "Compiling test..."
exec binDir + "coffee -o dist/test/ -c test/", (err, stdout, stderr) ->
exec binDir + "coffee -o dist/test/ -c test/", (err, stdout, stderr) ->
handleError(err) if err

watchDir = (dir, callback) ->
Expand Down
2 changes: 1 addition & 1 deletion lib/stomp-node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/stomp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/stomp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.