Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default asyncCommand({
build: 'preact build',
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? ❤️

};

pkg.eslintConfig = {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ yargs
.help()
.alias('h', 'help')
.demandCommand()
.strict()
.argv;