gulp-imports
A gulp plugin to make file imports/includes easy.
example:
file1.js
var file1 = function() {
console.log("I'm a function from file1.js");
};
//import("subdir1/file2.js");
//import("subdir2/file4.js");
subdir1/file2.js
var file2 = function() {
console.log("I'm a function from file2.js");
};
//import("subdir1a/file3.js");
subdir1/subdir1a/file3.js
var file3 = function() {
console.log("I'm a function from file3.js");
};
subdir2/file4.js
var file4 = function() {
console.log("I'm a function from file4.js");
};