Inception includes (nesting)
Closed this issue · 3 comments
Would be awesome to be able to include js files within a js file being included. So, nesting of includes essentially.
Example file structure:
source/
-- index.js
-- directives/
---- header/
------ header.js
------ _partials/
-------- headerLogoDirective.js
Example includes:
index.js
//= include 'directives/**/*.js'
header.js
//= include '_partials/headerLogoDirective.js'
//= include '_partials/headerLogoDirective.ngt'
Why is this useful?
Because you could bundle all script into a big lib file AND ALSO group directives into their own concise packages. This makes it easier to bower install this repo and choose whether to include the whole library in one file or selectively include only the directives of interest, for example.
I've been wavering back and forth on this one, but I lean towards agreeing that it could be useful. I will start to think about how it could be refectored.
is now working on the branch nested-directives. I have some refactoring to do before creating a PR though.
Closed by PR #37