From 9d2776183a5e4019daaeaf051e1e7ff36d219d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matias=20Niemel=C3=A4?= Date: Thu, 9 Jul 2015 15:34:33 -0700 Subject: [PATCH] chore(build): copy JSON files for Dart examples --- tools/broccoli/trees/browser_tree.ts | 1 + tools/broccoli/trees/dart_tree.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/broccoli/trees/browser_tree.ts b/tools/broccoli/trees/browser_tree.ts index e0fe47a72d..5faabc55da 100644 --- a/tools/broccoli/trees/browser_tree.ts +++ b/tools/broccoli/trees/browser_tree.ts @@ -190,6 +190,7 @@ module.exports = function makeBrowserTree(options, destinationPath) { htmlTree = mergeTrees([htmlTree, scripts, polymer, react]); es5Tree = mergeTrees([es5Tree, htmlTree, assetsTree]); + es6Tree = mergeTrees([es6Tree, htmlTree, assetsTree]); var mergedTree = mergeTrees([stew.mv(es6Tree, '/es6'), stew.mv(es5Tree, '/es5')]); diff --git a/tools/broccoli/trees/dart_tree.ts b/tools/broccoli/trees/dart_tree.ts index 1b1c523ec9..d7133a519b 100644 --- a/tools/broccoli/trees/dart_tree.ts +++ b/tools/broccoli/trees/dart_tree.ts @@ -146,7 +146,10 @@ function getDocsTree() { // Copy all assets, ignore .js. and .dart. (handled above). var docs = modulesFunnel(['**/*.md', '**/*.png', '**/*.html', '**/*.css', '**/*.scss'], ['**/*.js.md', '**/*.dart.md']); - return mergeTrees([licenses, mdTree, docs]); + + var assets = modulesFunnel(['examples/**/*.json']); + + return mergeTrees([licenses, mdTree, docs, assets]); } module.exports = function makeDartTree(options: AngularBuilderOptions) {