buildjs / rigger

Javascript file parser and include engine
http://buildjs.github.io/rigger
60 stars 15 forks source link

rigger converters #32

Open StreetStrider opened 9 years ago

StreetStrider commented 9 years ago

Hello. Have some misunderstanding about rigger, would glad to get some advice. I was thinking about rigger as an «include engine», which just able to include several files into another. The Readme says that stuff like Browserify is preferable when we need some advanced stuff. I'm totally agree with that and might add the for CSS and other resources other advanced bundlers can be used (like webpack or Duo).

So, I was expecting that rigger does not do anything special with files itself. However, I've found some converters mechanism in rigger and, suprisingly I've found some PEGjs converter in it (probably someone had used rigger for PEG before me and had added such converter). For now it's working ok with my pegjs files, but I would prefer to turn off any converters. Is it possible? Maybe there's some flag for it (like --no-converters), or special, generic form of include, which just includes file and do nothing with its content.

I found rigger an excellent tool for building generic text files, without any bias to JS or something else. Thanks.

DamonOehlman commented 9 years ago

@StreetStrider I think that's a great idea for the --no-converters option and should be pretty simple to implement. I'll take a look at adding that feature over the next week or so.