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

Fix dev taks exiting when linting fails #5474

Open
1 task
romaricpascal opened this issue Nov 5, 2024 · 0 comments
Open
1 task

Fix dev taks exiting when linting fails #5474

romaricpascal opened this issue Nov 5, 2024 · 0 comments
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation) small story tooling

Comments

@romaricpascal
Copy link
Member

romaricpascal commented Nov 5, 2024

What

Investigate why the dev Gulp tasks we run for development exits when linting fails.

Both govuk-frontend and the review app run linting on file changes, so we'll need to make sure linting errors in either no longer make Gulp exit.

The dev Gulp tasks can be run through either the following ways:

# Alias for `npm run dev`
npm start
# Runs both govuk-frontend and review app `dev` npm script in parallel
npm run dev
# Run the `dev` npm script of either workspace
npm run dev -w govuk-frontend
npm run dev -w @govuk-frontend/review
# Run `gulp` directly in either workspace
npx -w govuk-frontend gulp dev
npx -w @govuk-frontend/review gulp dev

Note

Fixing the issue should preserve the ability to disable linting, as this is useful to not clutter the output when building experimental/investigative code for spikes.

Why

This makes the dev process cumbersome, as the Gulp has to be re-launched every time a linting error happens during dev. While we want to fix these errors before commiting production code, we shouldn't have to go back in our terminal to re-launch the process because of a linting issue.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

  • Linting issues no longer make the dev task exit.
@romaricpascal romaricpascal added 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) tooling small story labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation) small story tooling
Projects
None yet
Development

No branches or pull requests

1 participant