-
Notifications
You must be signed in to change notification settings - Fork 343
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
Run extension with a custom Firefox binary #105
Conversation
51db667
to
07ac6da
Compare
@rpl could you review? |
* Each class instance variable is a camel case expanded program | ||
* option. Each option is defined in program.yargs.option(...). | ||
*/ | ||
export class ProgramOptions { |
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.
I removed this because it wasn't working (too many errors I could not resolve). I filed #106 to look for a solution.
533531d
to
be61c02
Compare
/* @flow */ | ||
import build from './build'; | ||
import run from './run'; | ||
export {build, run}; |
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 is probably a good candidate for an `export default {build, run}'.
if we do this kind of change, we need to change the corresponding imports [1] to something like:
import defaultCommands from './cmd';
[1]: in https://github.com/mozilla/web-ext/pull/105/files#diff-9589e3a0cc72e26a4814bc9ef05aa2d4R6
and
in https://github.com/mozilla/web-ext/pull/105/files#diff-2d9bd4ae7220a18dfa5b6b6707f45213R7
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.
ah, good idea. I didn't know that was possible :)
@kumar303 looks great +1 |
Run extension with a custom Firefox binary
Fixes #71
Some other things:
cli.js
intoprogram.js
because all this logic is relatedtemp-dir.js
main()
program code--build-dir
specific tobuild
rather than a global option