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 #7
refactor #7
Conversation
a2b80dc
to
51ea3ae
Compare
Microbundle supports multiple entry files through the Alternatively, we could invoke |
I've written some tests for the |
I'm actually going to be pretty busy this week but I took a quick look and the refactoring and tests look good. Just noticed something else I think we should implement. Doesn't feel right having punctuation at the end of a truncated string. Maybe remove that but give the option to enable it. Not for this PR obviously but just a thought.
Another thought, maybe we set up a project board where we drop ideas and little tweaks like this? |
I like the idea of having a project board with upcoming tasks. If we trim out punctuation, I propose we also remove spaces (I find it 'Lorem ipsum dolor sit amet …' weird) |
Yeah, I agree. I also had a weird case where |
Do you think we should use Also, what do you think about adding a changelog file? |
Yeah, we could use Changelog makes sense. I think we need to stick to a format though, perhaps https://keepachangelog.com? |
That format looks good. Maybe preface the component name too?
|
Yeah, I like the idea of that. |
8e94158
to
a00dbe1
Compare
@SimoTod feeling risky with all those force pushes are we ;) |
Add linter
Add check for Alpine version
Added some additional tests for the edge cases that had recent bug fixes. My build seems to have changed the spacing of the build files. Is that something we should fix in the editor config of somewhere? |
It's correct. It should have 4 spaces now. I think I didn't rebuild dist after merging the version check PR. |
I'll do that now |
Looks like the other PR had I think we're good to merge now if you agree. Will the GH action update the version numbers automatically after we tag? |
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.
looks good to me
yeah, when you tag a new version, it should update package.json and push to npm |
@SimoTod Could it update the readme somehow? Otherwise we should probably update that here then before merging |
The cdn links? I'd like the github action being responsible for updating the readme. We can merge it master now, but I think we don't need to tag a new release until we add a new helper or we fix a bug. There won't be any benefit at the minute. |
Merged! Great job everyone. I think this puts the project in a much better place now. |
We can make this happen, a JS script that reads from the package.json and replaces versions in the README |
The github action already knows the current tag and it runs on unix, I was thinking to just use sed to replace those strings so we don't need an additional script |
Yeah that would work as well created an issue #21 |
Opening this up as a draft initially just so you guys can track the progress.
The basic idea is to migrate to microbundle for bundling the magic properties, write a decent test suite with Jest and move some bits around like utility functions and move to an
Object.start()
method instead of a generic function.Note: These changes also require a repository name change to
magic-helpers
instead ofalpine-magic-helpers
. I think this is fine though since it's assumed that it is related to Alpine..