Permalink
Browse files

update scopify to autorequire entry file

  • Loading branch information...
1 parent afb908f commit 7f80c4b1c0a82104cca3f9da4a1452426eb0a667 @dodo committed Jan 29, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 Cakefile
  2. +1 −1 package.json
View
3 Cakefile
@@ -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:[
@@ -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 ->
View
2 package.json
@@ -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"}

0 comments on commit 7f80c4b

Please sign in to comment.