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

No build is faster than any build #1086

Merged
merged 1 commit into from
Oct 15, 2023
Merged

No build is faster than any build #1086

merged 1 commit into from
Oct 15, 2023

Conversation

gmmcal
Copy link
Owner

@gmmcal gmmcal commented Oct 8, 2023

Description

This PR aims to restructure the entire application to accomplish a faster boot time, easier to code/maintain, with less dependencies (specially node ones).

After all those changes, the app is now faster to boot and much simpler to maintain. There is still a lot to do, specially reducing/removing tailwind compiled CSS and bootstrap CSS on admin.

After all CSS is rewritten, I can get rid of SCSS folder, SCSSLint and (potentially) some other things, making setup even simpler.

Motivation and Context

I was triggered by DHH keynote on Rails World (the title is a quote from talk). After a lot of experimentation, I was able to:

  • Dockerize application
  • Replace SASS with pure CSS
  • Remove JS via node and replace with importmap
  • Run Tests and Lint on docker image built from application, making errors more reproducible (if they happen)

Along with those changes, there are some other improvements:

  • Fix UI issues on admin modal
  • Upgrade simple-form to boostrap 5
  • WIP docker image for Cypress tests

How Has This Been Tested?

  • Extensive manual testing (locally)
  • Some manual testing on preview environment
  • Trust that github actions is doing amazing work

Types of changes

  • Maintentance (update dependencies of the project)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@render
Copy link

render bot commented Oct 8, 2023

@gmmcal gmmcal force-pushed the actions branch 25 times, most recently from 8a12d40 to d518b67 Compare October 15, 2023 11:10
@gmmcal gmmcal force-pushed the actions branch 4 times, most recently from bc3cb75 to fb2f922 Compare October 15, 2023 20:15
@gmmcal gmmcal force-pushed the actions branch 21 times, most recently from 82478dd to 58c592a Compare October 15, 2023 22:14
@gmmcal gmmcal changed the title WIP Rewrite github actions No build is faster than any build Oct 15, 2023
* Dockerize application
* Replace SASS with pure CSS
* Remove JS via node and replace with importmap
* Run Tests and Lint on docker image built from application, making errors more reproducible (if they happen)
* Fix UI issues on admin modal
* Upgrade simple-form to boostrap 5
* WIP docker image for Cypress tests
@gmmcal gmmcal merged commit b046008 into main Oct 15, 2023
@gmmcal gmmcal deleted the actions branch October 15, 2023 22:40
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