Skip to content

Conversation

@rkostrzewski
Copy link
Collaborator

Currenty runing preact whatever won't report error. This is kinda unexpected behaviour and might cause some harm, e.g. in CI environments where script like preact built will return exit code 0.

This PR fixes that. I've also took liberty in changing default test script (coz preact test won't work now and people might get confused).

Pictures coz a picture is worth a thousand words.
Before:
screen shot 2017-05-20 at 16 17 50

After:
screen shot 2017-05-20 at 16 17 53

@developit
Copy link
Member

Wow, thanks a ton @rkostrzewski, this is great!

serve: 'preact build && preact serve',
dev: 'preact watch',
test: 'eslint src && preact test'
test: 'eslint src && echo "Error: no test specified" && exit 1'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one we actually probably need to keep as preact test - that command isn't available yet, but it will just spawn a preconfigured jest. I wanted to get the setup into generated package.json's since we can't retroactively update them later.

Would you be all right removing this one line? I think we can get the test command released really soon.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be preact test? ❤️

Copy link
Member

@developit developit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely!

@developit developit merged commit 5f50872 into preactjs:master May 20, 2017
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.

2 participants