Dan503/gulp-auto-imports

Add preset settings

Closed this issue · 2 comments

Things like SCSS and JS are extremely common use cases for this plugin so they should have short cuts that make them easier to set up.

This is a pretty easy feature to add but I'm not going to add it until the "Provide the ability to re-order imports" feature is added.

If I add this feature before that one is done then when I finish that feature, it will require a breaking change to integrate it into the typical SCSS workflow.

It needs to automatically pick up on the names of files in a "presets" folder. The name of the file will be the name of the preset.

Each file will be a JS file that exports a JS object holding the settings in it.

The preset settings must be able to be overridden by the user using the same setting in the options object.

It needs to have a preset for both ES6 JS and ES5 JS.

The list of presets I'll create:

  • scss
  • es6
  • es5
  • pug

(maybe php as well)

Fixed in v2.0.0