Open buob opened 9 years ago
yes, we talked about how to do this IRL, it will require a change to the pioneer build phase and a but of shuffling around of the classes, however it should not be so hard. @buob are you interested in doing this?
Sure. Let's leave it unassigned for now though in case someone else gets to it before I do.
Would you like to outline the approach here so that someone else could possibly pick this up. Currently the issue does not really explain the Why or How very well.
The most valuable part of pioneer is the widget abstraction. I should be able to use that separate from all of the runner, gherkin, etc. pieces. For example, in my plain old javascript file, something like:
module.exports = require('pioneer/widget').extend({
root: '.foo',
welcomeMessage: function() {
return this.find('.welcome');
}
});
Alter the build so that it builds each component separately, and then in the cucumber side of things, require those and invoke them.
yep :+1: this is the way to do it
I want to be able to require a certain class outside of cucumber