-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: add teamcity & browserstack support #185
Conversation
const StaticMiddlewareFactory = function(config) { | ||
console.log(`**** Dev server started at http://${config.listenAddress}:${config.port}/ *****`); | ||
console.log(`**** Karma static file server enabled in project root *****`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small change here, config.port would be wrong if the port is in-use and has to be incremented.
const serve = serveStatic( | ||
config.basePath, | ||
{index: ['index.html', 'index.htm']} | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should server the basePath, rather than trying to determine our own.
eae31ab
to
11802cf
Compare
const StaticMiddlewareFactory = function(config) { | ||
console.log(`**** Dev server started at http://${config.listenAddress}:${config.port}/ *****`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this info being printed elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The karma server prints it when it starts up. Oftentimes the address we were printing here is the address we were passed. This means that when port 9999
is in use and get incremented by karma to 10000
. we still print 9999
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool.
307ac4f
to
2ef0dea
Compare
generators/app/index.js
Outdated
@@ -305,16 +305,14 @@ module.exports = class extends Generator { | |||
|
|||
const file = constants.LICENSE_FILES[this.config.get('license')]; | |||
|
|||
if (!file) { | |||
return; | |||
if (file) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes a bug where un-licensed would cause the package.json not to be copied.
|
||
/* General Globals */ | ||
const moduleName = '<%= moduleName %>'; | ||
const pluginName = '<%= pluginName %>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly I added all the main variables at the top of the file, so that users won't have to dig into the actual builds unless they really need to.
usePhantomJS: false | ||
}; | ||
/* browsers to run on teamcity */ | ||
const teamcityLaunchers = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems a confusing name given that these browsers are set up to work with browserstack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it is maybe we should split it into teamcityLaunchers
, and browserstackLaunchers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I would just call these browserstackLaunchers and just use it in TC usecase below or something.
Also, would've been nice if the rollup changes, karma changes, and the fix for package.json were all in separate PRs. |
I will split up the prs |
24b6939
to
dc8cbd7
Compare
No description provided.