django-compressor-toolkit icon indicating copy to clipboard operation
django-compressor-toolkit copied to clipboard

Use npx

Open ashnur opened this issue 6 years ago • 2 comments

What do you think about using https://www.npmjs.com/package/npx for local npm packages? IMHO. it would be a much nicer way of handling the situation.~, now that npx is included in npm by default...~

*edit: oops

ashnur avatar May 18 '18 10:05 ashnur

Nice feature request, indeed! ;)

Though I don't know when I'll have a chance to implement it. @ashnur - could you, please, try to make a pull-request for it? (with a couple of tests included)

kottenator avatar May 19 '18 18:05 kottenator

I have very little experience with python so far, not sure if I could do it. Even working with the module is a struggle, here are a couple questions that I think would help me to integrate npx:

  • how to enable logging in case any of the commands in the filters fail? (or simply just seeing the commands and their output every time they are run would be great)
  • how to know in what current working directory the commands are run? Ideally I would like to be able to configure this to the directory where my package.json is.

ashnur avatar May 21 '18 15:05 ashnur