-
Notifications
You must be signed in to change notification settings - Fork 0
Primary functionality #2
Comments
I think we can move const src = require('gulp-bem-src');
src(String[], {
config: BemConfig,
bemdecl: *,
techs: String[],
techsAliases: ?Object<String,String[]>
}): Stream<BemVinyl?> Reasons:
|
The |
Alse we should support |
|
I think we should use native |
I suggest to lookup .bemrc from gulpfile directory and further as usual. |
In gulp.src we have With the idea to put required options as soon as possible, I'd say we should put declaration as the first argument because its like globs just for bem project instead of pure fs.
Good point! According to all comments seems like it should looks like this: src(decl: Tenorok[], techs: String|String[], [, options: {
config: ?BemConfig, // Should be loaded from .bemrc by default
sources: ?String[], // Should use levels from config by default and throw if nothing found
techAliases: ?Object<String,String[]> // Should use aliases from .bemrc if any
// vfs.src options:
buffer: Boolean=true,
read: Boolean=true,
since: ?(Date|Number),
stripBOM: Boolean=true,
passthrough: Boolean=false,
sourcemaps: Boolean=false,
followSymlinks: Boolean=true, // we should pass it to bem-walk?
dots: Boolean=false // pointless?,
// etc.
}]): Stream<Vinyl> Like that, right? I suggest to support them (all set of options) iteratively to not block anything else. |
I think we should support globs. bemSrc('*.blocks', {...}) Also we can use globs as bemSrc('*.blocks/button/**', {...})
In some projects we can build only one bundle with all sources. |
I think it's not blocking feature so we can do it later ;-) |
It should realize this:
The text was updated successfully, but these errors were encountered: