dlg-ui 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +9 -4
  2. package/package.json +3 -1
package/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
+ const Funnel = require('broccoli-funnel');
5
6
 
6
7
  module.exports = {
7
8
  name: require('./package').name,
@@ -9,14 +10,18 @@ module.exports = {
9
10
  included(app) {
10
11
  this._super.included.apply(this, arguments);
11
12
 
12
- app.import('public/trophy-removebg-preview.png', {
13
- destDir: 'assets',
14
- });
15
-
16
13
  // Concatenate all CSS files into addon.css at build time
17
14
  this.concatCSSFiles();
18
15
  },
19
16
 
17
+ treeForPublic() {
18
+ const publicTree = new Funnel(path.join(__dirname, 'public'), {
19
+ destDir: '/',
20
+ });
21
+
22
+ return publicTree;
23
+ },
24
+
20
25
  concatCSSFiles() {
21
26
  const stylesDir = path.join(__dirname, 'addon/styles');
22
27
  const addonCssPath = path.join(stylesDir, 'addon.css');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlg-ui",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "The default blueprint for ember-cli addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -44,6 +44,8 @@
44
44
  "@glimmer/component": "^1.1.2",
45
45
  "babel-eslint": "^10.1.0",
46
46
  "broccoli-asset-rev": "^3.0.0",
47
+ "broccoli-funnel": "^3.0.8",
48
+ "broccoli-merge-trees": "^4.2.0",
47
49
  "ember-auto-import": "^2.4.3",
48
50
  "ember-cli": "~4.12.0",
49
51
  "ember-cli-dependency-checker": "^3.3.1",