paulyoung / fontello-cli

Command line interface for fontello.
MIT License
88 stars 30 forks source link

build css and font directories recursively #4

Closed jubalm closed 10 years ago

jubalm commented 10 years ago

This fixes my issue when supplying path to --css or --font with paths like path/to/css. Lines around:

Error: EEXIST, file already exists
    at Object.fs.mkdirSync (fs.js:642:18)
paulyoung commented 10 years ago

Thanks. I'll take a look at this and get back to you.

paulyoung commented 10 years ago

Also, I'd love to know your use case for fontello-cli.

jubalm commented 10 years ago

not really sure if this is a good way of doing it (or if this is what you mean) but i was thinking of using it like this in package.json

"scripts": {
   "postinstall":"node_modules/.bin/fontello install --css path/to/stylesheets"
}

that makes sense? not really a node or js guru