broccoli-static-compiler is deprecated. Use broccoli-funnel instead.

This commit is contained in:
jelhan 2016-08-14 17:17:23 +02:00
parent f613a8d884
commit 36c7dc397c
2 changed files with 8 additions and 7 deletions

View file

@ -3,8 +3,8 @@
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function() {
const pickFiles = require('broccoli-static-compiler');
const unwatchedTree = require('broccoli-unwatched-tree');
const Funnel = require('broccoli-funnel');
const unwatchedTree = require('broccoli-unwatched-tree');
const trees = [];
const app = new EmberApp({
@ -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: ['**']
})
);
}

View file

@ -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",