2017 © Pedro Peláez
 

library scss-watcher

SCSS Watcher for multiple and/or nested directories

image

bnowack/scss-watcher

SCSS Watcher for multiple and/or nested directories

  • Thursday, October 8, 2015
  • by bengee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

SCSS Watcher

The SCSS Watcher is a PHP class that recursively monitors a directory for changed .scss files and generates .css versions. It requires a sass binary to be installed., (*1)

The CSS files are generated in css directories at the same level as the corresponding scss directory, e.g.:, (*2)

/myproject/module1/scss/module1.scss
/myproject/module2/scss/module2.scss
=>
/myproject/module1/css/module1.css
/myproject/module2/css/module2.css

SCSS files with a leading _ in the filename are treated as SCSS configuration files (e.g. for mixins). A change to a system file triggers a re-build of all CSS files., (*3)

Installation

Add the repository reference to your composer.json:, (*4)

"require-dev": {
    "bnowack/scss-watcher": "1.0.0"
}

Usage

Ideally, the SCSS Watcher is run from the command line. A script is provided:, (*5)

php scripts/watch.php --path=/path/to/entry/directory

or (from your repository root):, (*6)

php vendor/bnowack/scss-watcher/scripts/watch.php --path=src --bin=/usr/bin/sass

The "bin" parameter is optional. It can be used when auto-detection cannot find the sass binary. On Windows machines the command usually looks like this:, (*7)

php vendor/bnowack/scss-watcher/scripts/watch.php --path=src --bin=C:\Ruby\bin\sass

License

The MIT License (MIT), (*8)

The Versions

08/10 2015

dev-master

9999999-dev

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

08/10 2015

1.0.6

1.0.6.0

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

03/09 2015

1.0.5

1.0.5.0

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

25/06 2015

1.0.4

1.0.4.0

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

25/06 2015

1.0.3

1.0.3.0

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

25/06 2015

1.0.2

1.0.2.0

SCSS Watcher for multiple and/or nested directories

  Sources   Download

MIT

css php scss

25/06 2015

1.0.1

1.0.1.0

  Sources   Download

25/06 2015

1.0.0

1.0.0.0

  Sources   Download

26/02 2015

0.1.0

0.1.0.0

  Sources   Download

The Requires