apeman-task-scssvars

2.0.1 • Public • Published

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
Name Type Default Description
src string string[]
dest string Destination file.
options Object Optional settings.
options.mode string File permission.
options.nameVar function(name, value) Function to name a variable.
options.filterVar function(name, value) Function to decide use a variable.
options.additional Object Additional variables.

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-task-scssvars

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • okunishinishi