apeman-task-scssvars
apeman task to extract variables and write as json form scss files.
Last updated 4 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-task-scssvars 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (4 years ago)

5 Versions

  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |