Open ghost opened 10 years ago
Hi @ssbiswal1987,
thanks for your report. Unfortunately I don't have a Windows installation of Node / Grunt etc. handy, and I never tested it myself, so I won't be able to help you here in the short term. Maybe someone of the other readers can jump in?
Cheers, Joschi
Hi, @jkphl ok. I am hoping to get help from any other readers who are on windows.
//ssb
having a similar issue, can't install Win 7 64bit Cygwin Grunt v0.4.5 Grunt CLI v0.1.13
Having similar issue on WIndows 8
win32-ia32-v8-3.14
exists;testingHi @ssbiswal1987, @tbow & @Wasiim,
just wanted to let you know that I'm still on this one. As I know in the meantime, this has something to do with the prerequisites for node-gyp (which is a dependency of libxmljs) and can cause quite some troubles under Windows.
I released a new version of svg-sprite a couple of days ago, which is the base of iconizr and had libxmljs as a dependency. In the new version I dropped the need for libxmljs, so I was able to successfully install / test under Windows (8.1, but should be the same under Windows 7). I'll start rewriting iconizr from scratch in the next days, so stay tuned — support for windows should be on it's way.
Besides that, Happy New Year! :)
Cheers, Joschi
@jkphl
Thank you. Eagerly waiting for the release.
Happy new year to you too.
Great news! Looking forward to it!
Fantastic..
Thanks! Date: Fri, 2 Jan 2015 08:41:33 -0800 From: notifications@github.com To: grunt-iconizr@noreply.github.com CC: mwasiim@Hotmail.com Subject: Re: [grunt-iconizr] Cannot get it to work in windows (#15)
Great news! Looking forward to it!
— Reply to this email directly or view it on GitHub.
=
Installing 'Visual C++ 2010 Express' (https://www.visualstudio.com/en-us/downloads#d-2010-express) solved the issue for me (the npm install ran without errors after installing), I haven't had a chance to test it yet, but it looks promising!
@gideonheilbron Thanks for reporting! :+1:
I would love to have a version without the need of installing visual studio, because it requires admin rights... So it would be a GREAT step, if we have the new version for windows (soon) ;-)
Thanks for your amazing work!
@martiniusDE There's a new generation of grunt-iconizr in the dev branch, with completely revised dependencies and based on the latest generation of svg-sprite. It is, however, still fairly undocumented, unfortunately. If you're interested to work with it, the node-iconizr docs are your best bet so far. I'm doing my best to find the time to finish it ...
oh, great to hear!!! I missed it...
And fast fast fast answer - thanks, I will try it!
@martiniusDE You're welcome! The new generation is still in "stealth mode" as I just lack the time to finish it ... However, we already use it in production for a couple of months.
So I can install it on windows and I'm able to run the grunt task, but the task always throws an error:
D:\tmp\iconizr>grunt iconizr:test --verbose --debug
Initializing
Command-line options: --verbose, --debug=1
Reading "gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Initializing config...OK
Registering "grunt-iconizr" local Npm module tasks.
Reading D:\tmp\iconizr\node_modules\grunt-iconizr\package.json...OK
Parsing D:\tmp\iconizr\node_modules\grunt-iconizr\package.json...OK
Loading "iconizr.js" tasks...OK
+ iconizr
Loading "gruntfile.js" tasks...OK
>> No tasks were registered or unregistered.
Running tasks: iconizr:test
Running "iconizr:test" (iconizr) task
[D] Task source: D:\tmp\iconizr\node_modules\grunt-iconizr\tasks\iconizr.js
Verifying property iconizr.test exists in config...OK
Files: svg/logo.svg -> output
Options: dest="D:\\tmp\\iconizr\\output"
Reading D:\tmp\iconizr\svg\logo.svg...OK
Fatal error: Unterminated string constant
I already tried another svg-file, but the same error appears. Do you have any idea what is wrong? My gruntfile.js is btw:
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
iconizr: {
test: {
src:['svg/*.svg'],
dest:'output'
}
}
});
grunt.loadNpmTasks('grunt-iconizr');
};
@martiniusDE First of all, please make this a new issue as it obviously isn't the same problem as before anymore. Furthermore, your task misses vital components. It needs to look somewhat like this:
grunt.initConfig({
iconizr : {
dist : {
src : ['**/*.svg'],
dest : 'fileadmin/rws',
expand : true,
cwd : 'fileadmin/rws/.templates/icons',
options : {
log : 'info',
icons : {
render : {
scss : {
dest : '../.templates/sass/noconcat/icon'
}
}
}
}
}
},
});
Please refer to the properties overview for the available options and / or use the svg-sprite kickstarter and modify its results accordingly / manually.
Hi,
I have problem installing the grunt-iconizr plugin in my windows 7 machine. I get error when I try installing via npm install grunt-iconizr --save-dev.
Following is the error I get:
My system configuration is:
Windows 7 64 bit .NET Framework 4 Visual Studio 2010 Grunt 0.4.5
Please help!