Skip to content

Commit

Permalink
Update to Broccoli 0.5.0 syntax, without broccoli.makeTree
Browse files Browse the repository at this point in the history
  • Loading branch information
joliss committed Mar 29, 2014
1 parent b686d42 commit ccd03da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Brocfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ module.exports = function (broccoli) {
return tree
}

var app = broccoli.makeTree('app')
var app = 'app'
app = pickFiles(app, {
srcDir: '/',
destDir: 'appkit' // move under appkit namespace
})
app = preprocess(app)

var styles = broccoli.makeTree('styles')
var styles = 'styles'
styles = pickFiles(styles, {
srcDir: '/',
destDir: 'appkit'
})
styles = preprocess(styles)

var tests = broccoli.makeTree('tests')
var tests = 'tests'
tests = pickFiles(tests, {
srcDir: '/',
destDir: 'appkit/tests'
})
tests = preprocess(tests)

var vendor = broccoli.makeTree('vendor')
var vendor = 'vendor'

var sourceTrees = [app, styles, vendor]
if (env !== 'production') {
Expand Down Expand Up @@ -77,7 +77,7 @@ module.exports = function (broccoli) {
})
}

var publicFiles = broccoli.makeTree('public')
var publicFiles = 'public'

return [appJs, appCss, publicFiles]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"bower": "^1.2.8",
"broccoli": "^0.4.2",
"broccoli": "^0.5.0",
"broccoli-env": "0.0.1",
"broccoli-static-compiler": "^0.1.0",
"broccoli-uglify-js": "^0.1.0",
Expand Down

0 comments on commit ccd03da

Please sign in to comment.