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

chore: use split gulp tasks instead of the unsuitable "finish" event #11452 #11454

Merged
merged 3 commits into from
Aug 23, 2018

Conversation

ncoden
Copy link
Contributor

@ncoden ncoden commented Aug 15, 2018

Description

The finish Gulp event is an stream internal event and is not suitable to chain tasks. This pull request remove the dependency on this event from all Gulp tasks and prefer the usage of nano tasks with gulp.series.

Changes

sass:foundation

  • Remove broken Sass linting from the sass:foundation task. The finish gulp event is an stream internal event and is not suitable to chain tasks.
  • Add lint:graceful, lint:graceful:sass and lint:graceful:javascript to check for linting errors without throwing errors and breaking the chain of tasks.
  • Call lint:graceful on the build task. For now, there is too much linting issues to display them at each Sass/Javascript compilation.

docs

  • Move pages building to the docs:pages and docs:pages:all subtasks
  • Move search entries building to the docs:search subtask

customizer

  • Move the custom ZIP file generation to the customizer:zip task
  • Move the cleaning of the customizer build directory to customizer:clean task

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing
    functionality to change)

Checklist (all required):

  • I have read and follow the CONTRIBUTING document.
  • There are no other pull request similar to this one.
  • The pull request title is descriptive.
  • The template is fully and correctly filled.
  • The pull request targets the right branch (develop or develop-v...).
  • My commits are correctly titled and contain all relevant information.
  • My code follows the code style of this project.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).
  • All new and existing tests passed.

ncoden added 3 commits August 15, 2018 22:35
…t to build task

Changes:
- Remove broken Sass linting from the `sass:foundation` task. The `finish` gulp event is an stream internal event and is not suitable to chain tasks.
- Add `lint:graceful`, `lint:graceful:sass` and `lint:graceful:javascript` to check for linting errors without throwing errors and breaking the chain of tasks.
- Call `lint:graceful` on the build task. For now, there is too much linting issues to display them at each Sass/Javascript compilation.
The `finish` gulp event is an stream internal event and is not suitable to chain tasks.

Changes:
- Move pages building to the `docs:pages` and `docs:pages:all` subtasks
- Move search entries building to the `docs:search` subtask
…zer:clean`

The `finish` gulp event is an stream internal event and is not suitable to chain tasks.

Changes:
- Move the custom ZIP file generation to the `customizer:zip` task
- Move the cleaning of the customizer build directory to `customizer:clean` task
@ncoden ncoden requested a review from DanielRuf August 15, 2018 20:50
@ncoden ncoden changed the title fix: use split gulp tasks instead of the unsuitable "finish" event #11452 chore: use split gulp tasks instead of the unsuitable "finish" event #11452 Aug 15, 2018
@ncoden
Copy link
Contributor Author

ncoden commented Aug 17, 2018

@DanielRuf 👋 Would you have some time to review this ?

@ncoden ncoden merged commit 6067998 into foundation:develop Aug 23, 2018
ncoden added a commit that referenced this pull request Aug 25, 2018
….5.0

6c45b45 fix: remove broken Sass linting from Sass compilation task and move it to build task
80c6def refactor: split the docs build task to `docs:pages` and `docs:search`
6b12883 refactor: move the customizer ZIPing to `customizer:zip` and `customizer:clean`

Signed-off-by: Nicolas Coden <[email protected]>
ncoden added a commit to ncoden/foundation-sites that referenced this pull request Sep 4, 2018
Documentation styles uses the SCSS mixins/functions, so they must be recompiled when the SCSS change.

Introduced in foundation#11454
noahheck pushed a commit to noahheck/foundation-sites that referenced this pull request Jan 28, 2019
…452 for v6.5.0

6c45b45 fix: remove broken Sass linting from Sass compilation task and move it to build task
80c6def refactor: split the docs build task to `docs:pages` and `docs:search`
6b12883 refactor: move the customizer ZIPing to `customizer:zip` and `customizer:clean`

Signed-off-by: Nicolas Coden <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant