Skip to content

Commit

Permalink
update scopify to autorequire entry file
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Jan 29, 2012
1 parent afb908f commit 7f80c4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cakefile
Expand Up @@ -16,6 +16,7 @@ task 'compile', 'compile coffeescript → javascript', (options) ->

task 'bundle', 'build a browser bundle', (options) ->
browserify = require 'browserify'
{ createScope } = require 'scopify'
run
options:options
files:[
Expand All @@ -26,7 +27,7 @@ task 'bundle', 'build a browser bundle', (options) ->
bundle = browserify({
require: path.join(__dirname, m[0])
cache: on
}).use(require 'scopify').bundle()
}).use(createScope require:'./'+m[1]).bundle()
notify m[0], "successful browserify!"
filename = "#{m[1]}.browser.js"
writeFile(filename, bundle, options).then ->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"asyncxml": ">= 0.2.2"}
, "devDependencies": {
"browserify": "1.6.1",
"scopify": ">= 0.1.1",
"scopify": ">= 0.2.1",
"coffee-script": ">= 1.1.3",
"muffin": ">= 0.2.6",
"nodeunit": ">= 0.5.4"}
Expand Down

0 comments on commit 7f80c4b

Please sign in to comment.