Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

cleaning up filesystem errors on build-static #421

Merged
merged 2 commits into from
May 2, 2017

Conversation

davidmsibley
Copy link
Contributor

changes to frame weren't showing up when I ran static:dev, so I went through and fixed the build script.

Standardized error throwing, copy now overwrites.


Contributor License Agreement adherence:

Copy link
Contributor

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

Looks good

mkdirp('uw-frame-static/target/css/themes/', function (err) {
if (err) throw error;
mkdirp('uw-frame-static/target/css/themes/', function (error) {
if (error) throw error;
Copy link
Contributor

Choose a reason for hiding this comment

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

could error be confused with Error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to trust that Error would be immediately noticeable due to classes starting with capitals by convention. If someone saw Error and not Error() or new Error() that should be picked up during review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, you are expecting Google code style's new-cap lint rule to catch this.

@@ -12,9 +12,12 @@ var exec_handler = function(error, stdout, stderr) {

var mkdirp = require('mkdirp');
var copy = require('recursive-copy');
var copyOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

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

assuming Node.js 4+ is the target run time, should this be a const?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup. and we're using const elsewhere in the file. I'll update the file to use it consistently.

@davidmsibley davidmsibley merged commit 716fbdd into uPortal-Attic:master May 2, 2017
@davidmsibley davidmsibley deleted the staticBuild branch May 2, 2017 14:08
@vertein vertein added this to the 4.1.0 milestone May 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants