Open tboloo opened 8 years ago
Here is my scenario:
jquery
d3
assets/modules/bar_chart.js
Now when I add following section to composer.json
"extra": { "component": { "mbostock/d3": { "files": [ "d3.min.js" ], "shim": { "deps": ["jquery"] } }, "semantic/ui": { "files": [ "dist/semantic.min.css", "dist/semantic.min.js" ] }, "shim": { "modules/bar_chart" : ["d3/d3.min"] } } }
I get following code in require.js
require.js
var components = { "packages": [ { "name": "jquery", "main": "jquery-built.js" } ], "shim": { "d3": { "deps": [ "jquery" ] }, "data-visualization": { "modules/bar_chart": [ "d3/d3.min" ] } }, "baseUrl": "/assets" };
what I really need is
"shim": { "d3": { "deps": [ "jquery" ] }, "modules/bar_chart": [ "d3/d3.min" ] },
that is without "data-visualization", which happens to be project name. Is there any way to achieve this result with component-installer?
"data-visualization"
Here is my scenario:
jquery
,d3
, installed either as components, or with custom "extra" section with defined files.assets/modules/bar_chart.js
, which has dependcy ond3
Now when I add following section to composer.json
I get following code in
require.js
what I really need is
that is without
"data-visualization"
, which happens to be project name. Is there any way to achieve this result with component-installer?