-
Notifications
You must be signed in to change notification settings - Fork 2
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 the Tailwind classes replacement & imports replacement engines, update configs #37
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
src/test/kotlin/com/github/warningimhack3r/intellijshadcnplugin/DummyTests.kt
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
I know understand andOr
223e573
to
283acfd
Compare
- Fix r/w issues by moving actions - Create a visitor for React directives - Change way of working of current visitors for r/w - Fix format for test files - Fix code smell - Remove (now?) useless Source.cleanAlias
- Move `runXAction`s to the lower possible level - Fix their usage - Fix inverted condition for RSC in React - Invert condition in VueSource for readability - Remove useless createPsiFile(Project, FileType, String)
Now time for regressions and stuff (I wish there was a better solution than allowSlowOperations {} though)
- Fix another read action issue - Fix cssVariables setting never used for React - Fix cssVariables being misused for Vue - Fix imports replacements for Svelte
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: true Contact Qodana teamContact us at [email protected]
|
Replace the regex-based Tailwind classes replacement mechanism with an AST-based one. It will help better support various cases not working with the current implementation, as well as reduce the code verbosity.
The AST parsing requires the built-in
JavaScript
module, which is only available on WebStorm and IntelliJ IDEA Ultimate. Other IDEs are thus no longer supported.Also, the Svelte and Vue extensions (JSX support is built-in/sufficient with the
JavaScript
module), mandatory to be able to parse their associated files, are also now dependencies of this plugin.Vue is already a built-in plugin for IU & WS, however Svelte will have (unless I find a workaround) to be installed with this plugin.However, both plugins are optional to install.A similar engine is also brought to the imports replacement part, as well as for React's
"use X"
directives. Frameworks configurations have also been updated for comprehensive implementations.TODO list