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

Gulp watch fixes #1816

Merged
merged 13 commits into from Oct 27, 2016
Merged

Conversation

jessecstewart
Copy link
Contributor

@jessecstewart jessecstewart commented Oct 27, 2016

  • Watch fixes
  • Different colors for various watches (jade, styles, scripts)
  • runDev uses yarn

@jessecstewart
Copy link
Contributor Author

@realtymaps/github-review

@@ -1,6 +1,7 @@
require '../../common/extensions/strings'
paths = require '../../common/config/paths'
gulp = require 'gulp'
watch = require 'gulp-watch'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switch from gulp4 watch to this, which uses chokidar. I think this is what gulp4 was using previously and it worked better.

@@ -12,6 +13,8 @@ markup = (app) ->
markupFn = () ->
_testCb() if _testCb

gutil.log "Building markup:", gutil.colors.bgYellow(paths[app].jade)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added some different colors for jade, styles, and scripts so it is easier to see what's building

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -22,7 +22,7 @@ browserifyTask = ({app, watch, prod, doSourceMaps}) ->
'!' + paths.frontendCommon.root + 'scripts/**/*prod.' + ext
paths[app].root + 'scripts/**/*.' + ext
'!' + paths[app].root + 'scripts/**/*prod.' + ext
paths.tmp + '*.js'
paths.temp + '*.js'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed typo, but it didn't really seem to be breaking anything. I guess because browserify was getting it through a require anyway.

logger.debug -> inputGlob
logger.debug -> "@@@@@@@@@@@@@@@@@@@"
# logger.debug -> "@@@@ inputGlob @@@@"
# logger.debug -> inputGlob
Copy link
Contributor

Choose a reason for hiding this comment

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

I actually like seeing the glob so can we just make this another log level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@nmccready
Copy link
Contributor

Circle says your missing the lock file. However I do not see where you deleted it.

@nmccready
Copy link
Contributor

Already started re-running on CI

Copy link
Contributor

@nmccready nmccready left a comment

Choose a reason for hiding this comment

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

inputGlob debugger. Uncomment and use another log level .

@@ -12,6 +13,8 @@ markup = (app) ->
markupFn = () ->
_testCb() if _testCb

gutil.log "Building markup:", gutil.colors.bgYellow(paths[app].jade)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

fi

if [[ "$DO_INSTALL" == "true" ]]
then
foreman run npm install
Copy link
Contributor

Choose a reason for hiding this comment

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

just noticed the ./scripts/app/clean needs to be fixed as well. I think yarn cache clean will possibly work.

Copy link
Contributor

@nmccready nmccready Oct 27, 2016

Choose a reason for hiding this comment

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

Also reshrinkwrap is missing some things as well.

# make sure nothing extraneous exists
npm prune

# make sure everything else is up-to-date
npm install "$OPTIONS"

to

# make sure nothing extraneous exists
#???? see https://github.com/yarnpkg/yarn/issues/696
yarn install

# make sure everything else is up-to-date
yarn install "$OPTIONS"

yarnpkg/yarn#696

Copy link
Contributor

@nmccready nmccready left a comment

Choose a reason for hiding this comment

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

Other yarn issues.

@jessecstewart
Copy link
Contributor Author

@nmccready I'm at a loss on this lockfile issue. I tried adding a done() to the test but now it says "timeout of 10000ms exceeded"

@jessecstewart
Copy link
Contributor Author

Wow it passed. I updated the lockfile, but I'm not sure why that would have been necessary

@nmccready nmccready merged commit bb12445 into realtymaps:master Oct 27, 2016
@zacronos zacronos deleted the dev/jcs/gulp-fixes branch November 14, 2016 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants