Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/instantan/boring
CLI for boring webdev with go
https://github.com/instantan/boring
css esbuild go javascript scss template typescript zero-configuration
Last synced: 1 day ago
JSON representation
CLI for boring webdev with go
- Host: GitHub
- URL: https://github.com/instantan/boring
- Owner: Instantan
- License: mit
- Created: 2023-10-20T13:23:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T14:41:41.000Z (over 1 year ago)
- Last Synced: 2024-11-22T08:32:28.436Z (2 months ago)
- Topics: css, esbuild, go, javascript, scss, template, typescript, zero-configuration
- Language: Go
- Homepage:
- Size: 2.69 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boring
> CLI for boring webdev with go
## Install
```bash
go install github.com/Instantan/boring
```## Commands
```bash
boring
```
Hot code reloading of .scss, .css, .ts, .js, .templ and .go files```bash
boring generate
```
Generates, bundles, minifies .scss, .css, .ts, .js and .templ files```bash
boring help
```
Prints the help screen## More informations
### SCSS
Boring bundles the dart-sass compiler and automatically compiles and minifies all scss and css filesIt 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.scssIt will produce:
pico.min.css
lib.min.css
main.min.cssTo 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.scssWich 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
- [https://github.com/sass/dart-sass](https://www.npmjs.com/package/sass)
- [https://github.com/evanw/esbuild](https://github.com/evanw/esbuild)
- [https://github.com/a-h/templ](https://github.com/a-h/templ)
- [https://github.com/dop251/goja](https://github.com/dop251/goja)