-
Notifications
You must be signed in to change notification settings - Fork 0
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
Custom scripts #21
Comments
I had a similar issue before but we never followed up on it. I agree that this will improve DX. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now
build
,lint
,test
, ... commands are running correspondingnpm
scripts. However, it might be useful if we can add a possibility to override a specific command with a custom one.Scenario
I want to have two scripts for testing - one that I use for development and one that is being used on CI.
Current
I have 2 scripts -
test
for CI andtest:coverage
for dev. The DX is not great since I need to adapt my workflow because we do not want to trigger a test run withcoverage
on our app to improve the speed. So now, everytime I want to run the tests locally and I want to checkout the coverage I need to runnpm run test:coverage
oryarn test:coverage
.Workaround
I could check which environment I'm using and then make 3 scripts -
test
,test:ci
andtest:coverage
. Then thetest
script would be basicallyifCi ? testCi() : testCoverage()
. Then I can runnpm run test
both on ci and local and the DX is improved.Solution
If we allow the custom scripts to be passed in to actions then this problem could be solved once in much easier way. Two scripts -
test
for dev andtest:ci
for CI.API
Maybe the entire issue is just nitpicking but I can see how this can solve potential issues in the future.
If you think this is a good idea, I would love to implement the changes myself :D
The text was updated successfully, but these errors were encountered: