-
Notifications
You must be signed in to change notification settings - Fork 11
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
Rewrite internals (road to v1 ✨) #44
base: main
Are you sure you want to change the base?
Conversation
@Temzasse BTW, though I think v1.0.0 doesn't need it, how do you think about rewriting this library using Typescript? I feel it easier to modify than js codes. |
@tkow good point about rewriting the internals in TypeScript 👍 I agree that it would improve the development experience if we used TS instead of JS. I initially tried to write the library purely with TS but it turned out to be very difficult 😅 I think there is a reason why the original Stitches lib kept the typings separate from the library internals since the types are so complex. I still don't fully understand all the TS black magic that is happening in the type defs that I ported over 😆 If we can keep using the separate type defs while converting the internals to TS I think that would be great. However I'm not sure if that will cause problems when we build and package the library for npm 🤔 |
Thank you for advices. Ah... . I noticed border style examples I added are not suitable for test native app. |
@Temzasse I made it before with using changesets in a repository. The official changesets workflow is available and relatively simple to configure (But, this action have a pitfall to commit .npmrc including secret npm token (it has risk to leak your npm token) if you don't avoid it by .gitignore or committing your own .npmrc file). Even if you don't familiar with changesets, you can get started by only a few things you should know .
If you're interested CI deploy management. Please feel free to ask me about it. |
@tkow I'm using np for publishing the package to npm. It automatically creates Github releases with commit messages as the changelog. Also when I'm publishing the package I need to enter a 2fa code in the terminal - does the Github Actions publishing workflow handle that? |
No, it doesn't. It works with bypassing 2-FA code tokens. Automation work flow trades off security though latest npm token format can be configured about package scope and expiration date.
Sure. If it looks preferable to use 2-fa, please forget my suggestion. |
Road to
v1
✨Things done:
Todo:
This rewrite should address these issues/PRs:
Since @tkow you've been so active in this project lately I would love to hear your thoughts about this rewrite 😊 Have I missed something important or is there something that we should add to the lib before we publish the
v1.0.0
version?