I wrote a batch file to clone a seed-element file structure, including replacing any instances of ${NAME} with the new element name

34 views
Skip to first unread message

Scott Beeson

unread,
Jul 25, 2014, 5:25:27 PM7/25/14
to polym...@googlegroups.com
https://github.com/ScottBeeson/polyclone

It's very basic right now.  If anyone wants to improve it, or has already done something better, please let me know!

I got very tired of creating folders, html files and everything every time I created a new custom element.

Scott Beeson

unread,
Jul 25, 2014, 6:12:05 PM7/25/14
to polym...@googlegroups.com
It now scans all files in the /seed/ folder and duplicates them, replacing any instance of ${NAME}.  Any filename matching the seed will be renamed to the target.  ie, /seed/seed.html will become /target/target.html.  All other files will retain their name.

Rob Dodson

unread,
Jul 26, 2014, 3:57:26 PM7/26/14
to Scott Beeson, polymer-dev
Hey Scott,

Have you taken a look at generator-polymer for Yeoman? If you run `yo polymer:seed` it will produce the seed element structure for you. Running `yo polymer:gh` will generate the docs branch


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/612d6cc0-f5c6-4e23-853a-f0bc6c3c0ef7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Scott Beeson

unread,
Jul 26, 2014, 4:02:38 PM7/26/14
to Rob Dodson, polymer-dev

I have not,  but I will when I get a chance,  thanks!

Reply all
Reply to author
Forward
0 new messages