entoj-sass

0.4.0 • Public • Published

Linux Build Windows Build Test Coverage

entoj-sass integration

Features

Commands

SassCommand

Provides cli integration for sass compiling

Configuration
configuration.commands.push(
    {
        type: require('entoj-sass').command.SassCommand
    }
);

Linter

SassFileLinter

Provides support for sass file linting for the LintCommand

Configuration
configuration.commands.push(
    {
        type: require('entoj-system').command.LintCommand,
        '!linters':
        [
            {
                type: require('entoj-sass').linter.SassFileLinter,
                options:
                {
                    useDefaultRules: true
                }
            }
        ]
    }
);

Configuration

sass.includePathes

Default: [] Type: Array Global: Yes Environment: Yes

Pathes for sass files that are available to @include


sass.bundlePath

Default: ${cache}/sass/bundles Type: String Global: Yes Environment: Yes

Path for compiled css bundles


sass.bundleTemplate

Default: ${site.name.urlify()}/css/${group}.scss Type: String Global: Yes Environment: Yes

Template for generating css bundle filenames


sass.browsers

Default: ['ie >= 9', '> 2%'] Type: Array<String> Global: No Environment: Yes

Sets the minimal supported Browsers versions. See http://cssnext.io/usage/#browsers


sass.sourceMaps

Default: false Type: Boolean Global: No Environment: Yes

Embeds source maps into compiled bundles


sass.optimize

Default: false Type: Boolean Global: No Environment: Yes

Enables destructive css optimizations - use with care


sass.minify

Default: false Type: Boolean Global: No Environment: Yes

Enables css minifications


sass.urlRewrite

Default: false Type: Array<String> Global: No Environment: Yes

Allows to rewrite urls to make them fit the target environment. See https://github.com/iAdramelk/postcss-urlrewrite

Running tests

Runs all test specs at once

npm test

Runs all test matching the given regex

npm test -- --grep model/

Enables logging while running tests

npm test -- --vvvv

Runs all test specs and shows test coverage

npm run coverage

Lints all source files

npm run lint

Licence

Apache License 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i entoj-sass

Weekly Downloads

20

Version

0.4.0

License

none

Unpacked Size

117 kB

Total Files

55

Last publish

Collaborators

  • c.auth