Skip to content
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

Migrate default themes to TypeScript #20

Merged
merged 11 commits into from
Apr 15, 2022
Merged

Migrate default themes to TypeScript #20

merged 11 commits into from
Apr 15, 2022

Conversation

JezerM
Copy link
Owner

@JezerM JezerM commented Mar 13, 2022

Related to #13

Changes

  • Gruvbox and Dracula themes migrated to TypeScript.
    • Added new mock.ts file to both themes
    • Use JavaScript modules.
  • Fix some bugs.
    • Removed transition CSS rule for all elements in HTML for Dracula, which improves performance.
    • Fix localStorage issue when saving/loading the default user.
  • Added more NPM scripts:
    • Build themes with npm run build:themes
    • Lint themes with npm run lint:themes, and fix with npm run lint:themes:fix
    • Prettier themes with npm run prettier:themes, and fix with npm run prettier:themes:fix
    • npm run build now builds both themes and nody-greeter.

Copy link
Owner Author

@JezerM JezerM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think everything is okay. The current behavior is practically the same as before, with some improvements, and should be easier to maintain and navigate through.

Also, I was thinking about using a bundler, like Webpack or Vite.js, which could help to remove the _vendors packages and use the npm ones, but this could difficult the build process. Maybe, this would be implemented in a future.

@JezerM JezerM merged commit 528fb04 into master Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant