0.1.2 • Published 9 years ago

sofa-style-resolver v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Sofa Style Resolver

This Gulp Plugin takes the root package.json of your Sofa App and constructs a minimal list of SCSS includes for your app, reducing dead code. You can also replace or exclude files, which are included by this task.

Basic Usage

gulp.src('package.json', {read: false})
    .pipe(sofaStyleResolver())
    .pipe(gulp.dest('whereever'));

Options

  • excludeArray: Array of files that should be excluded.
  • replaceObject: Key value paires of file names that should be replaced, e. g. {'functions': 'my-functions'}.
  • userFilesArray: Array of files that should also be included at the bottom.
  • beforeArray: Array of files that will be included before anything else.
  • afterVarsArray: Array of files that will be included after the import of the theme's variable file. This would be the place to overwrite theme variables.
  • afterArray: Array of files that willl be included after the theme files, but before the userFiles.