lein-npm icon indicating copy to clipboard operation
lein-npm copied to clipboard

Respect existing package.json?

Open binarykitchen opened this issue 10 years ago • 5 comments

Hello again

Any chance this plugin could respect any existing package.json if there are any? This instead of creating a temporary one.

binarykitchen avatar Feb 25 '15 22:02 binarykitchen

Reason is because I want to use https://www.npmjs.com/package/gulp-load-plugins and it cannot parse project.clj ...

binarykitchen avatar Feb 25 '15 22:02 binarykitchen

Maybe! I'm interested in design ideas or a PR!

RyanMcG avatar Jun 23 '15 03:06 RyanMcG

Do you mean persist package.json instead of creating an ephemeral version or do you mean only modify dependencies section of an existing package.json?

Would #35 help? I'm trying to decide what behaviour is best.

RyanMcG avatar Aug 14 '15 01:08 RyanMcG

yep, don't create an epheremal package.json when there is already one. in our project we use leiningen and node.js/io.js together and run the one or other engine, depending on the environment.

binarykitchen avatar Aug 14 '15 04:08 binarykitchen

Take a look at #53. I don't think it's really what you want, but let me know if it would help or hurt your use-case.

RyanMcG avatar Apr 07 '17 18:04 RyanMcG