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

default: scripts can't be functions #3

Open
Mehuge opened this issue Sep 20, 2018 · 1 comment
Open

default: scripts can't be functions #3

Mehuge opened this issue Sep 20, 2018 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@Mehuge
Copy link
Owner

Mehuge commented Sep 20, 2018

The following does currently work:-

build: {
  default: someFunction(),
}

It complains that the default is not a script. The workaround is to do something like:-

build: {
  default: "nps build.exec",
  exec: someFunction(),
}

TODO: Add support for default: being functions.

@Mehuge Mehuge added bug Something isn't working enhancement New feature or request labels Sep 20, 2018
@wmertens
Copy link

wmertens commented Aug 6, 2019

It works for me in nps as long as someFunction() returns a string…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants