2.0.1 • Published 9 years ago

apeman-task-scssvars v2.0.1

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

apeman-task-scssvars

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to extract variables and write as json form scss files.

Installation

$ npm install apeman-task-scssvars --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This is an example Apemanfile to use apeman-task-scssvars */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    // Define your own task.
    'scss:variables': require('apeman-task-scssvars')(
      "constants/scss_vars_constants",
      "stylesheets/**/*.scss",
      {
        //Options
      }
    )
  }
}

Then,

$ apeman task my-task-01

Signature

define(src, dest, options) -> function

apeman task to extract variables and write as json form scss files.

Args
NameTypeDefaultDescription
srcstringstring[]Source file pattern.
deststringDestination file.
optionsObjectOptional settings.
options.modestringFile permission.
options.nameVarfunction(name, value)Function to name a variable.
options.filterVarfunction(name, value)Function to decide use a variable.
options.additionalObjectAdditional variables.

License

This software is released under the MIT License.

Links

2.0.1

9 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago