Socket
Socket
Sign inDemoInstall

grunt-sass-to-scss

Package Overview
Dependencies
31
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-sass-to-scss

Convert sass to scss files


Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
1
Install size
42.0 kB
Created
Weekly downloads
 

Readme

Source

grunt-sass-to-scss

Convert sass to scss files. It is basivally a port from @askucher script. It also converts + and = sass specific syntaxe to scss @include and @mixin.

Getting Started

This plugin requires Grunt ~0.4.2

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-sass-to-scss --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-sass-to-scss');

The "sass_to_scss" task

Overview

In your project's Gruntfile, add a section named sass_to_scss to the data object passed into grunt.initConfig().

grunt.initConfig({
  sass_to_scss: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});

Options

options.separator

Type: String Default value: '\n'

A string value that is used to separate files when merging them.

Usage Examples

Default Options

With default options, you can specify several files to be converted. The files will be merged with a new line.

grunt.initConfig({
  sass_to_scss: {
    options: {},
    files: {
      'dest/style.scss': ['src/file1.sass', 'src/file2.sass'],
    },
  },
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • 0.1.9 - Ignore #{ ... } markup when inserting ;
  • 0.1.8 - Remove // comment only lines
  • 0.1.7 - Remove /* comment */ only lines
  • 0.1.6 - Allow * only selectors
  • 0.1.5 - Fix issue #3 for real
  • 0.1.4 - Fix #3 + refactored tests and code
  • 0.1.3 - Fix #1
  • 0.1.2 - Fix #2
  • 0.1.1 - Updated documentation, credits to @askucher
  • 0.1.0 - Initial version, wrong documentation, no credit

Keywords

FAQs

Last updated on 23 Jan 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc