broccoli-static-compiler is deprecated. Use broccoli-funnel instead.
This commit is contained in:
parent
f613a8d884
commit
36c7dc397c
2 changed files with 8 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||
|
||||
module.exports = function() {
|
||||
const pickFiles = require('broccoli-static-compiler');
|
||||
const Funnel = require('broccoli-funnel');
|
||||
const unwatchedTree = require('broccoli-unwatched-tree');
|
||||
const trees = [];
|
||||
|
||||
|
@ -49,18 +49,19 @@ module.exports = function() {
|
|||
|
||||
// include api files into dist
|
||||
trees.push(
|
||||
pickFiles(unwatchedTree('api'), {
|
||||
new Funnel(unwatchedTree('api'), {
|
||||
srcDir: '/',
|
||||
destDir: '/api',
|
||||
files: ['index.php', 'cron.php', 'classes/*', 'vendor/*']
|
||||
include: ['index.php', 'cron.php', 'classes/*', 'vendor/**']
|
||||
})
|
||||
);
|
||||
|
||||
if (app.env === 'development' || app.env === 'test') {
|
||||
trees.push(
|
||||
pickFiles('tests/dummyData', {
|
||||
new Funnel('tests/dummyData', {
|
||||
srcDir: '/',
|
||||
destDir: '/data'
|
||||
destDir: '/data',
|
||||
include: ['**']
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
"devDependencies": {
|
||||
"body-parser": "^1.2.0",
|
||||
"broccoli-asset-rev": "^2.2.0",
|
||||
"broccoli-funnel": "^1.0.6",
|
||||
"broccoli-merge-trees": "^0.2.1",
|
||||
"broccoli-static-compiler": "~0.2.1",
|
||||
"broccoli-unwatched-tree": "^0.1.1",
|
||||
"connect-restreamer": "^1.0.1",
|
||||
"cors": "^2.5.3",
|
||||
|
|
Loading…
Reference in a new issue