refactor(build): explicitly mention src
folder in imports
Export files are now directly under the module folder, e.g. `core/core.js`. With this, an import like `core/core` won’t need a path mapping (e.g. via `System.paths`) any more. This adds the `src` folder to all other import statements as well.
This commit is contained in:
@ -6,7 +6,7 @@ var path = require('path');
|
||||
module.exports = function(gulp, plugins, config) {
|
||||
return function() {
|
||||
return gulp.src(config.src)
|
||||
.pipe(util.renameSrcFolder(plugins, config.srcFolderMapping))
|
||||
.pipe(util.insertSrcFolder(plugins, config.srcFolderInsertion, config.modulesFolder))
|
||||
.pipe(through2.obj(function(file, enc, done) {
|
||||
var fileName = file.relative;
|
||||
var moduleName = file2moduleName(fileName);
|
||||
|
Reference in New Issue
Block a user