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,7 +3,7 @@
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function() { module.exports = function() {
const pickFiles = require('broccoli-static-compiler'); const Funnel = require('broccoli-funnel');
const unwatchedTree = require('broccoli-unwatched-tree'); const unwatchedTree = require('broccoli-unwatched-tree');
const trees = []; const trees = [];
@ -49,18 +49,19 @@ module.exports = function() {
// include api files into dist // include api files into dist
trees.push( trees.push(
pickFiles(unwatchedTree('api'), { new Funnel(unwatchedTree('api'), {
srcDir: '/', srcDir: '/',
destDir: '/api', destDir: '/api',
files: ['index.php', 'cron.php', 'classes/*', 'vendor/*'] include: ['index.php', 'cron.php', 'classes/*', 'vendor/**']
}) })
); );
if (app.env === 'development' || app.env === 'test') { if (app.env === 'development' || app.env === 'test') {
trees.push( trees.push(
pickFiles('tests/dummyData', { new Funnel('tests/dummyData', {
srcDir: '/', srcDir: '/',
destDir: '/data' destDir: '/data',
include: ['**']
}) })
); );
} }

View file

@ -20,8 +20,8 @@
"devDependencies": { "devDependencies": {
"body-parser": "^1.2.0", "body-parser": "^1.2.0",
"broccoli-asset-rev": "^2.2.0", "broccoli-asset-rev": "^2.2.0",
"broccoli-funnel": "^1.0.6",
"broccoli-merge-trees": "^0.2.1", "broccoli-merge-trees": "^0.2.1",
"broccoli-static-compiler": "~0.2.1",
"broccoli-unwatched-tree": "^0.1.1", "broccoli-unwatched-tree": "^0.1.1",
"connect-restreamer": "^1.0.1", "connect-restreamer": "^1.0.1",
"cors": "^2.5.3", "cors": "^2.5.3",