boring

command module
v0.0.0-...-6248caf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 1 Imported by: 0

README

boring

CLI for boring webdev with go

Install

go install github.com/Instantan/boring

Commands

boring 

Hot code reloading of .scss, .css, .ts, .js, .templ and .go files

boring generate

Generates, bundles, minifies .scss, .css, .ts, .js and .templ files

boring help

Prints the help screen

More informations

SCSS

Boring bundles the dart-sass compiler and automatically compiles and minifies all scss and css files

It treats every scss or css file as a entrypoint, wich means if you have the following three scss/css files:

pico.css lib.scss main.scss

It will produce:

pico.min.css lib.min.css main.min.css

To ignore a scss or css file from the compiler prefix it with an underscore. So if you only want the main file because you import the other files in it your directory should look like:

_pico.css _lib.scss main.scss

Wich will produce the following file:

main.min.css

ESBuild

It also comes with esbuild to bundle and minify all js/ts files. It treats every js file as a entrypoint wich means you get a compiled and minified version for every js file. To exclude a js file from the bundler prefix is with a underscore. For more information see the SCSS description, it works exactly the same way

Templ

Templ is used to generate efficient HTML Templates.

Build with

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
internal
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL