Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

gulpfile: fix nodemon settings - #10

Merged
bajtos merged 1 commit into
masterfrom
feature/fix-nodemon-watch
May 30, 2014
Merged

gulpfile: fix nodemon settings#10
bajtos merged 1 commit into
masterfrom
feature/fix-nodemon-watch

Conversation

@bajtos

@bajtos bajtos commented May 29, 2014

Copy link
Copy Markdown
Member

Remove the dependency on packages, provide sensible static configuration
that works for all packages and non-packages alike.

Ignore **/test/** files.

Remove no longer used method findSrc().

Note: as of #7, there is no modules/package.json, thus the previous
nodemon configuration was not picking changes made in modules/*.js.

/to @ritch please review

I do realise this is dismantling the structure you have built in gulpfile. My hope is that the change is for better, as it reduces amount of code to maintain.

Remove the dependency on packages, provide sensible static configuration
that works for all packages and non-packages alike.

Ignore `**/test/**` files.

Remove no longer used method `findSrc()`.

Note: as of #7, there is no `modules/package.json`, thus the previous
nodemon configuration was not picking changes made in `modules/*.js`.
Comment thread gulpfile.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm trying to avoid hard coding package names (eg html5) anywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point. How about */build/** instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tried that initially and had issues. Maybe I had the wrong ** or pattern.

@bajtos

bajtos commented May 30, 2014

Copy link
Copy Markdown
Member Author

@ritch

I'd like to avoid this if possible. We should use the package.json main script instead.

I agree. However, the current version of gulpfile is using hard-coded path to the app file too, so this pull request is not making the situation any worse.

We can fix the script value in a new PR. It depends on #8 being landed first.

I'm trying to avoid hard coding package names (eg html5) anywhere.

Fixed.

LGTY now?

@bajtos bajtos added this to the 1.0 milestone May 30, 2014
@ritch

ritch commented May 30, 2014

Copy link
Copy Markdown
Member

LGTM

bajtos added a commit that referenced this pull request May 30, 2014
@bajtos
bajtos merged commit f5c969a into master May 30, 2014
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.

2 participants