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

Add webpack to modules list? #307

Open
TheLarkInn opened this issue Jan 8, 2017 · 11 comments
Open

Add webpack to modules list? #307

TheLarkInn opened this issue Jan 8, 2017 · 11 comments

Comments

@TheLarkInn
Copy link

TheLarkInn commented Jan 8, 2017

After a brief discussion via twitter with @MylesBorins, he offered we could work together on getting webpack added to the module lists.

We also have some important supporting packages but ill list all and their testing commands and we can work from there:

repo command to run tests recommended test machine (if relevant)
webpack/webpack npm link && npm link webpack && npm t any
webpack/enhanced-resolve npm test any
webpack/watchpack npm test non-mac (very flaky tests on mac)
webpack/loader-runner npm test any
webpack/tapable npm test any
webpack/webpack-sources npm test any
webpack/memory-fs npm test any

All of the non webpack/webpack repos are less important but they are just some more on the list to ensure legit coverage.

We are working to create a similar CITGM for our own plugin loader ecosystem so we can smoke test individual packages as well.

Let me know about thoughts. I will submit a PR with a bit of direction. Thanks!

@gdams
Copy link
Member

gdams commented Jan 9, 2017

@MylesBorins how are we going to add this if we can't pass in custom test commands?

@TheLarkInn
Copy link
Author

TheLarkInn commented Jan 9, 2017

We could create an alias command for webpack/webpack if needed. Let me know if I can help facilitate.

@gdams
Copy link
Member

gdams commented Jan 9, 2017

@TheLarkInn the way that citgm currently works is that it runs npm install and then npm test on the module.

@TheLarkInn
Copy link
Author

I haven't looked at that part of the code yet, is there scope to add a pre hook?

@gdams
Copy link
Member

gdams commented Jan 9, 2017

Not at the moment, we are trying to move away from all custom scripts

@MylesBorins
Copy link
Contributor

@TheLarkInn official pre hooks will be called. Essentially we shell out npm install && npm test

@TheLarkInn
Copy link
Author

Oh so could I technically set that linking in a postinstall and that would be fine?

@MylesBorins
Copy link
Contributor

@TheLarkInn that should work, and it should be sandboxed to out install... that being said I think it is a bit of an anti-pattern to have to modify the environment of the machine to run the test suite. I can dig into the webpack test suite a little bit and see if there is a way to do this without changing the environment.

@TheLarkInn
Copy link
Author

@MylesBorins That would be greatly appreciated. I can't recall specifically the reasoning behind needing to npm link && npm link webpack locally for that test suite so if we can remove it ourselves from our infra, that would be even better.

@gdams
Copy link
Member

gdams commented Jan 31, 2017

@TheLarkInn can you not just change your test script in package.json from

"test": "mocha test/*.test.js --harmony --check-leaks", ==>

"test": "npm link && npm link webpack && mocha test/*.test.js --harmony --check-leaks",

Seems to be working for me and then it could be implemented into citgm easily

@gdams
Copy link
Member

gdams commented Feb 21, 2017

ping @TheLarkInn @MylesBorins is my solution going to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants