Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NodeJS support #15

Open
yuraj11 opened this issue May 3, 2015 · 8 comments
Open

Add NodeJS support #15

yuraj11 opened this issue May 3, 2015 · 8 comments

Comments

@yuraj11
Copy link
Collaborator

yuraj11 commented May 3, 2015

automate svg2android from CLI

@yuraj11 yuraj11 self-assigned this May 3, 2015
@victorhaggqvist
Copy link

This would be awesome

@yuraj11
Copy link
Collaborator Author

yuraj11 commented Oct 31, 2015

There's support for drag & drop multiple svg at once.

@victorhaggqvist
Copy link

Yeah sure, but kind of inconvenient for several hundred icons multiple times. Having it part of a build script would be handy.

@Ashraf-Ali-aa
Copy link

👍

@yuraj11 yuraj11 removed their assignment Feb 22, 2016
@yuraj11
Copy link
Collaborator Author

yuraj11 commented Feb 22, 2016

I will appreciate If someone could implement this - I do not plan implementing this feature. After research this would need a huge code rewrite.

@snowdream
Copy link

👍

@bhargavms
Copy link

I would love to pick this up, if you could provide some hints on how to get started since I am a Javscript newbie here :)

@serv-inc
Copy link

serv-inc commented Aug 18, 2017

@bhargavms: it seems as though the main method is generateCode. It seems to also need flatten.js and svg_shape_converter.js (and jQuery for the xml parsing). You would also need some way to set the command-line arguments that are offered by the web interface, f.ex.bakeTransforms (look for localStorage). @yuraj11 : thanks for the SW, it was the only one that worked for me. Please have a look at the outline and correct if anything is wrong or could be done better.

Summary:

simple:

  1. read svg from command line to data structure (from stdin, file name, pick one)
  2. apply generateCode, see which methods etc are needed
  3. write result to output (stdout, file, pick one)

enhanced:

  • options as set via web interface
  • i/o options
  • ? anything else ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants