-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
refactor: automate build with rollup #83
Conversation
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.
Good work 🎉
Left few suggestions
Please check why CI is failing. |
@jamesgeorge007 there is an error with e2e . Please check |
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.
Update your branch. Ig that is gonna make the CI green.
We can do this in future PR, adding this in thie PR will create mess |
No problem. Just mentioned now it's totally possible and it'll be quite simple to do 😁 |
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.
Please check the CI. its still failing. else its good to go
Pipeline was failing because the tests depends on |
Why rollup is not bundling the file? it should resolve the dependencies so that we can just deploy the |
@jamesgeorge007 I need a try/catch around the assertions and it's having issues to read the file generated:
|
|
Yup, errors / exceptions are not handled properly |
@raulfdm can you try to run the tests with |
I am not a fan of |
I found the issue. Basically rollup does not generate a proper "executable". To enable via terminal we should do some Now probably it'll work. |
but still the |
Cool ... 🎉 |
Actually the error is not been handled proper. I mean, the command is: // ...rest
test('shows up help message without any args', async t => {
const { stderr } = await execa(rootCommand, {reject: false});
t.snapshot(stderr);
});
// ... Usually async/await is surrounded by a I've never use this framework btw, I'm so far satisfied with Jest. |
true I hope james will change those in future. |
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.
Great work 🎉
Feel free to convert the codebase to es6 but first lets put linters first |
|
fixes #82.
Basically the proposal is just add a very simple command which does the build process. Consequently is no need to keep
bin/docsify
versioned anymore.Also it may allow you guys to write ES6 code in the future if you want. The only configuration it'll need is
https://github.com/rollup/rollup-plugin-babel
.