Permalink
Browse files

Upgrade pngcrush installer, make the move to using Vagrant, hopefully…

… we have some build fixing
  • Loading branch information...
1 parent 8ab3bed commit 1a4ff57f2dbf3aa3aeed9f98e615a17449d5c8b8 @jefflembeck jefflembeck committed Sep 12, 2013
Showing with 43 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .npmignore
  3. +32 −0 Vagrantfile
  4. +2 −2 package.json
  5. +6 −5 tasks/grunticon.js
View
@@ -1,2 +1,3 @@
.DS_STORE
node_modules
+.vagrant
View
@@ -1 +1,3 @@
/node_modules/
+.vagrant
+Vagrantfile
View
@@ -0,0 +1,32 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+ config.vm.box = "precise64"
+ config.vm.box_url = "http://files.vagrantup.com/precise64.box"
+
+ config.vm.network "private_network", ip: "33.33.33.10"
+ config.vm.network "forwarded_port", guest: 80, host: 4567
+
+ config.vm.provision(:shell, :inline => <<-CMD)
+ # exit on error
+ set -e
+
+ echo "Installing node and deps ..."
+ if ! which node; then
+ apt-get update
+ apt-get install -y build-essential
+ apt-get install -y python-software-properties
+ add-apt-repository ppa:chris-lea/node.js
+ apt-get update
+ apt-get install -y nodejs
+ fi
+ apt-get install -y vim
+
+ CMD
+
+ config.vm.provision(:shell, :inline => "cd /vagrant && npm install && npm test")
+end
View
@@ -1,7 +1,7 @@
{
"name": "grunt-grunticon",
"description": "A mystical CSS icon solution",
- "version": "0.6.10",
+ "version": "0.6.11",
"homepage": "https://github.com/filamentgroup/grunticon",
"author": {
"name": "Scott Jehl",
@@ -34,7 +34,7 @@
"uglify-js": "~2.2.5",
"phantomjs": "1.9.1-0",
"svgo":"~0.3.7",
- "pngcrush-installer": "1.7.66-14",
+ "pngcrush-installer": "1.7.67-1",
"fs-extra": "0.6.3",
"xmldom": "0.1.16"
},
View
@@ -284,19 +284,20 @@ module.exports = function( grunt , undefined ) {
};
var crush = function( pngfolder ){
- grunt.log.write( "\ngrunticon now spawning pngcrush..." );
- grunt.log.writeln('(using path: ' + crushPath + ')');
- var tmpPngfolder = path.join( tmp, pngfolder );
-
if( grunt.file.exists( path.join( config.dest , pngfolder ) ) ){
grunt.file.delete( path.join( config.dest, pngfolder ) );
}
+ var tmpPngfolder = path.join( tmp, pngfolder );
+
+ grunt.log.writeln( "\ngrunticon now spawning pngcrush..." );
+ grunt.log.writeln('(using path: ' + crushPath + ')');
+
crusher.crush({
input: tmpPngfolder,
outputDir: path.join( config.dest , pngfolder ),
crushPath: crushPath,
- maxBuffer: 250
+ maxBuffer: 250
}, function( stdout , stderr ){
grunt.verbose.write( stdout );
grunt.verbose.write( stderr );

0 comments on commit 1a4ff57

Please sign in to comment.