css-sprite
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -5,3 +5,4 @@ #!/usr/bin/env node | ||
var sprite = require('../index'); | ||
var gaze = require('gaze'); | ||
// var gaze = require('gaze'); | ||
var fs = require('vinyl-fs'); | ||
var opts = require('nomnom') | ||
@@ -96,11 +97,9 @@ .option('out', { | ||
if (opts.watch) { | ||
gaze(opts.src, function () { | ||
if (opts['no-sort']) { | ||
opts.sort = false; | ||
} | ||
console.log('Watching for file changes ...'); | ||
this.on('all', function () { | ||
sprite.create(opts, function () { | ||
console.log('> Sprite created in ' + opts.out); | ||
}); | ||
if (opts['no-sort']) { | ||
opts.sort = false; | ||
} | ||
console.log('Watching for file changes ...'); | ||
fs.watch(opts.src, function () { | ||
sprite.create(opts, function () { | ||
console.log('> Sprite created in ' + opts.out); | ||
}); | ||
@@ -107,0 +106,0 @@ }); |
{ | ||
"name": "css-sprite", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "css sprite generator", | ||
@@ -47,30 +47,29 @@ "license": "MIT", | ||
"async": "^0.9.0", | ||
"color": "^0.7.3", | ||
"color": "^0.8.0", | ||
"cssesc": "^0.1.0", | ||
"gaze": "^0.6.4", | ||
"graceful-fs": "^3.0.5", | ||
"imageinfo": "^1.0.4", | ||
"json2css": "^6.1.0", | ||
"layout": "~2.1.0", | ||
"lodash": "^3.1.0", | ||
"layout": "~2.2.0", | ||
"lodash": "^3.3.1", | ||
"lwip": "0.0.6", | ||
"mkdirp": "^0.5.0", | ||
"mustache": "^1.0.0", | ||
"mustache": "^1.1.0", | ||
"nomnom": "^1.8.1", | ||
"through2": "^0.6.3", | ||
"vinyl": "^0.4.6", | ||
"vinyl-fs": "0.3.13" | ||
"vinyl-fs": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^2.1.0", | ||
"mocha-lcov-reporter": "^0.0.1", | ||
"mocha-lcov-reporter": "^0.0.2", | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.5", | ||
"should": "^4.6.3", | ||
"istanbul": "^0.3.7", | ||
"should": "^5.1.0", | ||
"stylus": "^0.50.0", | ||
"node-sass": "^0.9.6", | ||
"less": "^2.3.1", | ||
"clean-css": "^3.0.9", | ||
"node-sass": "^2.0.1", | ||
"less": "^2.4.0", | ||
"clean-css": "^3.1.4", | ||
"grunt": "^0.4.5" | ||
} | ||
} |
@@ -25,15 +25,9 @@ 'use strict'; | ||
function () { | ||
console.log('second'); | ||
async.series([ | ||
function (cb) { | ||
sass.render({ | ||
var result = sass.renderSync({ | ||
file: path.join(__dirname, 'styles/style.scss'), | ||
outputStyle: 'compressed', | ||
success: function (css) { | ||
cb(null, css); | ||
}, | ||
error: function (err) { | ||
cb(err, null); | ||
} | ||
outputStyle: 'compressed' | ||
}); | ||
cb(null, result.css); | ||
}, | ||
@@ -40,0 +34,0 @@ function (cb) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
93820
1064
+ Addedbin-pack@1.0.2(transitive)
+ Addedcolor@0.8.0(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@0.3.0(transitive)
+ Addedduplexify@3.7.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedglob-stream@4.1.1(transitive)
+ Addedglob-watcher@0.0.8(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjson-stable-stringify-without-jsonify@1.0.1(transitive)
+ Addedlayout@2.2.0(transitive)
+ Addedmerge-stream@0.1.8(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.83.6.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedstream-shift@1.0.3(transitive)
+ Addedstring_decoder@1.1.11.3.0(transitive)
+ Addedthrough2@4.0.2(transitive)
+ Addedthrough2-filter@3.1.0(transitive)
+ Addedunique-stream@2.3.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvinyl-fs@1.0.0(transitive)
- Removedgaze@^0.6.4
- Removedabsolute-path@0.0.0(transitive)
- Removedbindings@1.2.1(transitive)
- Removedboxpack@0.1.0(transitive)
- Removedclone@1.0.4(transitive)
- Removedcolor@0.7.3(transitive)
- Removedcolor-name@1.0.1(transitive)
- Removedcolor-string@0.2.4(transitive)
- Removeddefaults@1.0.4(transitive)
- Removedgaze@0.6.4(transitive)
- Removedglob@3.2.11(transitive)
- Removedglob-stream@3.1.18(transitive)
- Removedglob-watcher@0.0.6(transitive)
- Removedglobule@0.2.0(transitive)
- Removedgraceful-fs@2.0.3(transitive)
- Removedlayout@2.1.0(transitive)
- Removedlodash@2.4.2(transitive)
- Removedminimatch@0.3.0(transitive)
- Removednan@0.8.0(transitive)
- Removednextback@0.1.0(transitive)
- Removedunique-stream@1.0.0(transitive)
- Removedvinyl-fs@0.3.13(transitive)
Updatedcolor@^0.8.0
Updatedlayout@~2.2.0
Updatedlodash@^3.3.1
Updatedmustache@^1.1.0
Updatedvinyl-fs@1.0.0