Collector browser extension, or some abstract garbage

Good time of day. The situation is this: I am developing some browser extensions under chrome and firefox. Most of the code overall, but, of course, differences are also missing. The question is: can I somehow get rid of the constant copy common code from one project to another? I, in principle, can write a batch file that will do it, but if there is any ready solutions?
October 3rd 19 at 03:41
4 answers
October 3rd 19 at 03:43
Solution
Ohoho... needle in egg, egg in a hare, hare in a duck. Perhaps the batch file to write easier :) But thanks anyway, when I get to work with node.js I'm gonna try. - Isabelle_Stokes63 commented on October 3rd 19 at 03:46
October 3rd 19 at 03:45
Have chosen normal .sh script. Plus the fact that the Assembly does not need any additional things.
Well, or Makefile.
October 3rd 19 at 03:47
Not really a collector, but this is even cooler: kangoextensions.com/kango.html

The only thing for commercial use surcharge.
Alas, the use of the most that neither is commercial. "Contact us" instead of the price tag discourages again. - Isabelle_Stokes63 commented on October 3rd 19 at 03:50
October 3rd 19 at 03:49
I use Closure compiler. In the line compile set defayn need of browser and he obfuscated minimizes the code, and most importantly throws out unused code.
Please explain how to use the subject, to shove a particular set of files from one folder structure to another. - Isabelle_Stokes63 commented on October 3rd 19 at 03:52
No way. It is not intended to copy.
It is designed to wrote a single code, with which you can obtain many different output files.
For example I have a code one, but the target file ( ie under 3, 4 under WebKit and so forth).

Don't know about You, but I say "copy common code from one project to another" have a nervous TIC. On this and proposed a radical solution (the others suggested before me) - Isabelle_Stokes63 commented on October 3rd 19 at 03:55
Well, I will not hide, I did not understand how it works. And a cursory reading of the text of the link did not help. I'll figure it out. Anyway, thank you. - Isabelle_Stokes63 commented on October 3rd 19 at 03:58

Find more questions by tags JavaScript