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

New Mojo to run node with arbitrary arguments #997

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cmarchand
Copy link

New Mojo to execute arbitrary node commands

As explained in issue #996 I need a new Mojo to run node command with arbitrary parameters

Tests and Documentation

README.md contains an example to use NodeMojo plugin.

@eirslett
Copy link
Owner

A few people have asked for this feature, but perhaps not many enough. What people usually do is npm run your-script from Maven, and then in package.json add "your-script": "node something.js" inside the scripts block. You then get the additional benefit of being able to do npm run your-script directly from the command line (without Maven) which can be convenient if your command is somewhat complex (node some/kind/of/script.js --foo bar ./bla --etc).

@cmarchand
Copy link
Author

Yes, that's a solution. In my situation, at this point, I do not have anymore need of npm, so adding a package.json in my maven project is not very useful.
But yes, it's a good workaround. Thanks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants