Friday, May 3, 2024
HomeJavaScript๐ŸŽ‰ The Gowebly CLI has grown to v2.0.0

๐ŸŽ‰ The Gowebly CLI has grown to v2.0.0




Introduction

Blissful New Yr, my DEV mates! ๐ŸŽŠ

Whereas everybody was enjoyable and eager about Christmas, I used to be exhausting at work in my studio to arrange a large replace for the Gowebly CLI quantity v2.

I do not like to tug out the intro, so right here we go! ๐Ÿ˜‰



๐Ÿ“ Desk of contents



What’s Gowebly?

A next-generation CLI device that makes it simple to create wonderful net purposes with Go on the backend, utilizing htmx & hyperscript and the most well-liked CSS frameworks on the frontend.

๐Ÿ”ฅ A next-generation CLI device that makes it simple to create wonderful net purposes with Go on the backend, utilizing htmx & hyperscript and the most well-liked CSS frameworks on the frontend.

โœจ Options

  • 100% free and open supply below the Apache 2.0 license;
  • For any developer’s stage of information and technical experience, because the clever CLI does a lot of the routine undertaking setup for you, creates an comprehensible construction, and prepares code to be used and deployment in manufacturing;
  • Cross-platform and multi-architecture permits profitable working on any GNU/Linux distros, Microsoft Home windows (together with WSL) and Apple macOS;
  • Properly-documented, consists of translations in many different languages (ะ ัƒััะบะธะน, ็ฎ€ไฝ“ไธญๆ–‡, Espaรฑol);
  • Allows you to begin a brand new undertaking sooner with Go, htmx & hyperscript libraries;
  • Helps the built-in web/http package deal andโ€ฆ

โ†‘ Desk of contents



Breaking adjustments

After gathering the opinion of essentially the most lively customers and based mostly on the expertise of my different profitable CLI undertaking Create Go App, I made a decision to take away the potential for configuring with a YAML file.

โœจ Sure, .gowebly.yml is not wanted!

The useful and extremely stunning huh library from the Attraction group is now in control of that. Simply improve to the most recent model of the Gowebly and sort the acquainted command within the terminal:

gowebly create
Enter fullscreen mode

Exit fullscreen mode

And simply have a look at this:

new gowebly create

The identical factor occurred with the unknown and the physician instructions, which now look (and really feel) utterly completely different:

gowebly physician
Enter fullscreen mode

Exit fullscreen mode

new gowebly doctor

โ†‘ Desk of contents



Dwell reload mode on code updates

It was extremely anticipated, and I made a decision to not delay and make it as quickly as doable. Since model v2.0.0, the Gowebly CLI helps reloading a undertaking working in improvement mode if adjustments are made to it:

  1. Go code;
  2. Templ or HTML templates;
  3. SASS/CSS types;
  4. TypeScript/JavaScript recordsdata;
  5. Frontend half settings (JSON).

That is made doable due to the Air device, which now comes with each undertaking you create. The configuration is as follows:

# .air.toml

root = "."
tmp_dir = "tmp"

[build]
pre_cmd = ["bun run build"]
cmd = "templ generate && go construct -o ./tmp/gowebly_default ."
bin = "tmp/gowebly_default"
include_ext = ["go", "templ", "html", "json", "js", "ts", "css", "scss"]
exclude_dir = [".parcel-cache", "bin", "dist", "node_modules", "static", "tmp", "tests", "vendor"]
exclude_regex = ["_test.go", "_templ.go"]
exclude_unchanged = false
follow_symlink = false
log = "build-errors-air.log"
ballot = false
poll_interval = 500
delay = 1000
stop_on_error = true
send_interrupt = false
kill_delay = 500
rerun = false
rerun_delay = 500

# ...
Enter fullscreen mode

Exit fullscreen mode

Should you do not wish to use Air, when creating a brand new undertaking, choose “No” when the CLI prompts you to make use of the device. On this case, this Makefile shall be created.

โ†‘ Desk of contents



Different notable enhancements

The backend has been utterly reimagined:

  1. Repetitive components in templates have been eliminated;
  2. The configs for making a Docker container have been simplified;
  3. Add the htmx-go package deal to simplify the htmx dealing with on the server layer of the appliance.

The frontend half has acquired the next refresh:

  1. Repetitive components in templates have been eliminated;
  2. Add a ./property/scripts.js file in your reactive logic;
  3. Add the Flowbite elements library for the Tailwind CSS;
  4. Add the Prettier for code formatting.

And never solely that! ๐Ÿ˜Š Hold a watch out for updates and new releases on the undertaking’s GitHub web page and official documentation.

โ†‘ Desk of contents



Photographs and movies by



P.S.

If you’d like extra articles (like this) on this weblog, then publish a remark beneath and subscribe to me. Thanks! ๐Ÿ˜ป

And naturally, you may assist me make builders’ lives even higher! Simply hook up with one in all my initiatives as a contributor. It is easy!

My principal initiatives that want your assist (and stars) ๐Ÿ‘‡

  • ๐Ÿ”ฅ Gowebly: A next-generation CLI device to simply construct wonderful net purposes with Go on the backend, utilizing htmx & hyperscript and the most well-liked CSS frameworks on the frontend.
  • โœจ Create Go App: Create a brand new production-ready undertaking with Go backend, frontend and deploy automation by working one CLI command.

Different my small initiatives: yatr, gosl, json2csv, csv2api.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments