0.0.18 • Published 10 years ago

node-constsass v0.0.18

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

node-constsass

node-constsass is a Node.js application used for automated sass compilation.

Installation

npm -g install node-constsass

Command-Line Usage:

constsass <input directory> <output directory>

Code Sample:

var constass = require('constsass');


function onUpdate(fileName) {
    console.log('some update made for file ' + fileName);
}

constass.watchDir('web/scss/', '/compiled/css/', 'nested', onUpdate);

disable timer and add a 'oncomplete' event:

var constass = require('../lib/constsass');

//this function will be called only when files are changed
function onUpdate(fileName) {
    console.log('some update made for file ' + fileName);
}

//this function will be called on check complete if timer is disabled
constass.event.onComplete = function(dir) {
    console.log('done for', dir);
}
constass.enableTimer(false);
constass.watchDir('web/scss/', '/compiled/css/', 'nested', onUpdate);

GNU General Public License

Copyright (C) 2014  Alexandru Stefan

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.
0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago