Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fixing an OS X issue with the Cakefile #98

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ task 'build', 'generate unified JavaScript file for whole Hallo', ->
console.log version
series [
(sh "cp -R src tmp")
(sh "sed -i 's/{{ VERSION }}/#{version}/' '#{__dirname}/tmp/hallo.coffee'")
(sh "sed -ie 's/{{ VERSION }}/#{version}/' '#{__dirname}/tmp/hallo.coffee'")
(sh "coffee -o examples -j hallo.js -c `find tmp -type f -name '*.coffee'`")
(sh "rm -r tmp")
]
Expand All @@ -45,7 +45,7 @@ task 'min', 'minify the generated JavaScript file', ->
console.log version
series [
(sh "cp -R src tmp")
(sh "sed -i 's/{{ VERSION }}/#{version}/' '#{__dirname}/tmp/hallo.coffee'")
(sh "sed -ie 's/{{ VERSION }}/#{version}/' '#{__dirname}/tmp/hallo.coffee'")
(sh "coffee -o examples -j hallo.js -c `find tmp -type f -name '*.coffee'`")
(sh "uglifyjs examples/hallo.js > examples/hallo-min.js")
(sh "rm -r tmp")
Expand Down