Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Better error handling in our Build #261

Merged
merged 23 commits into from
Jan 15, 2016
Merged

Conversation

gokunymbus
Copy link
Contributor

This is a pretty big update to the build including fixes to all JavaScript files for linting errors. The following changes will add:

  1. Gulp Plumber This is mostly for better general error handling. I replaced all the .on() event listeners on all pipes.
  2. jsHint Integration This will stop any JavaScript errors and most stylistic errors.
  3. Gulp Less Hinting This should fix stylistic issues with Less Files.
  4. Actual Failing Builds If there are any errors, the build will actually fail now and will not pass.

John Miller and others added 12 commits January 6, 2016 16:11
- Added NewJSHint Plugin
- Added plumber to all tasks
- Removed.on() syntax from all tasks
- Added task to fail build if errors exist
- Added more functionality around tracking errors.
- Removed fake error from LESS.
- Fixed intentional less error
- Added new utility for adding ignore flag to an array of files.
- Wrapped map() in a function to prevent the pipe breaking.
- Resolved less hinting errors
- Resolved all jsHinting Errors.
…st and a src.

- Added a new task just for ignored linting files.
…into miljo/better-error-handling

# Conflicts:
#	src/less/Fabric.less [RESOLVED]
@@ -20,23 +20,51 @@ gulp.task('ComponentSamples-nuke', function () {
// Copying Files Tasks
// ----------------------------------------------------------------------------

Copy link
Contributor

Choose a reason for hiding this comment

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

Add white space on Line 100.

John Miller added 2 commits January 12, 2016 17:02
- Added more linting options
- Added and fixed the less linting task.
John Miller and others added 5 commits January 14, 2016 08:45
- Added custom error handling function for Sass
- Created a task to set config on Fabric Build.
- Removed scss lint due to too many dependencies (Ruby etc)
…e for our library files because of the period in the middle of the file names.
…into miljo/better-error-handling

# Conflicts:
#	src/components/Toggle/Toggle.less [RESOLVED]
"newcap": false,
"undef": true,
"unused": true,
"browser": true
Copy link
Contributor

Choose a reason for hiding this comment

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

Tab this over

this.addWarning = function(warning) {
warnings.push(warning);
return;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

this space is off

@@ -168,23 +168,33 @@
overflow-y: auto;
}

.ms-PersonaCard-detailChat { margin-left: 0 !important; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing all these !importants makes me a little nervous, but I tested them, and didn't see any regressions!

@notandrew
Copy link
Contributor

approved -- looks great!

fileExtension = Config.lessExtension;
}

gulp.task('Fabric-buildStyles', ['Fabric-configureBuild', 'Fabric-styleHinting'], function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

When I put an error into a Less file and build, the console outputs the error 9 times.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which less file?

@wdo3650
Copy link
Contributor

wdo3650 commented Jan 15, 2016

I like what you got! Nice job! Approved.

gokunymbus added a commit that referenced this pull request Jan 15, 2016
@gokunymbus gokunymbus merged commit 0eb48f6 into master Jan 15, 2016
@mikewheaton mikewheaton deleted the miljo/better-error-handling branch February 9, 2016 03:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants