aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2026-01-24all: fix test on GoEmbedShulhan
Seems like we use "find ... -delete" for a reason that I forgot. It should not be like that, we will fix it later.
2026-01-24all: embed CSS and index HTML template using memfsShulhan
Previously, with direct embed, every time we change the CSS or index template, we need to restart the "ciigo serve" command. Using memfs make us easy to update and see the changes directly, without restarting the server.
2025-02-01make: derive GOBIN using "go env GOBIN"Shulhan
The environment variable GOBIN may not set by user explicitly.
2025-02-01all: replace external linters with internal linterShulhan
The fieldalignment and shadow is linter from golang.org/x/tools. This linters actually have an API that can be combined into a program, which provided by package "pakakeh.go/lib/goanalysis".
2025-01-07all: move example for ciigo as library to internal/cmd/ciigo-exampleShulhan
While at it, update the example index by removing unnecessary external image, and update links to open in new tab/window.
2025-01-07all: change the "serve-doc" and default address to prevent conflictsShulhan
Using port 8080 as the default address for "serve" is too common and may conflict with other services in user local environment. While at it, also change the "serve-doc" with other random ports to allow us test running "ciigo serve" and viewing doc at the same time.
2025-01-07all: run task "test" after "lint" and "build"Shulhan
Task for "lint" and "build" is much more faster than "test". So if we lint or build failed, we did not waste too much times waiting for all tests to pass. While at it, remove linter "revive" we will use the standard linters from Go tools itself.
2024-05-12all: set the test output for GoEmbed without modification timeShulhan
This is to make the go embed output consistent when this repository cloned for the first time, due the file modtime is newer on each "git clone".
2023-11-07Makefile: replace linter golangci-lint with reviveShulhan
The reason for replacing is the golangci-lint become unusable. It does not provide any useful hints (either we become better at writing Go code or the default linter is not good enough). While at it, add another linters from golang.org/x/tools including fieldalignment and shadow.
2023-05-14all: generate HTML test coverage on task testShulhan
2022-09-06all: add task to preview the documentationShulhan
2022-08-20all: add tasks to setup test inside systemd containerShulhan
When running test inside container, sometimes its success, most of the time its fail. In order to replicate it we need to setup the same container environment and inspect it.
2022-08-06all: set the Version automatically set during buildShulhan
This require that the command build or install using "make build/install".
2022-08-01all: simplify make tasksShulhan
Instead of separating different build directory for OS, use single _bin directory. If we want to build for different OS/arch, can set the GOOS and GOARCH environment variables before running make.
2022-08-01all: merge internal/cmd/goembed to cmd/ciigo-exampleShulhan
The internal/cmd/goembed is replaced as command "embed" of cmd/ciigo-example.
2022-03-04all: re-licensing ciigo under GPL-3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl/ for more information.
2022-02-16Makefile: set CGO_ENABLED to 1 when running testShulhan
Never assume that the user set CGO_ENABLED to 1 by default.
2021-10-10all: refactoring with latest share moduleShulhan
The lates share module use the term GoEmbed to generate Go source file. In order for this repo in sync with upstream terminology and to minimize confusion, we changes the exported function and command name from "generate" to "embed", this includes * Command "ciigo generate" become "ciigo embed" * Exported function to generate Go renamed from "Generate" to "GoEmbed". This include the parameter GenerateOptions which renamed to EmbedOptions. * The internal command to generate example renamed from "generate" to "goembed"
2021-02-21all: rewrite to use the watcherShulhan
Now that we have the watcher which task are to watch the asciidoc files and template files, we can use it in server to minimize duplicate code. This changes refactoring the htmlGenerator to initialize the HTML template from internal or memfs, so the caller did not need to check by itself.
2021-01-10Makefile: simplify all tasksShulhan
* Do no install the ciigo-example * Remove task for creating _bin directory since it will be handled by go tools automatically.
2020-05-07Makefile: add task to serve the generated exampleShulhan
2020-05-01all: move the file to generate static assets to internal/cmd/generateShulhan
2020-04-18Makefile: add release tasksShulhan
2020-02-14Makefile: add task to run linterShulhan
2019-08-14cmd/ciigo: a CLI to convert, generate, and serve markup filesShulhan
Here are the usage of CLI, ciigo [-template <file>] convert <dir> Scan the "dir" recursively to find markup files (.adoc or .md) and convert them into HTML files. The template "file" is optional, default to "templates/html.tmpl" in the current directory. ciigo [-template <file>] [-out <file>] generate <dir> Convert all markup files inside directory "dir" recursively and then embed them into ".go" source file. The output file is optional, default to "ciigo_static.go" in current directory. ciigo [-template <file>] [-address <ip:port>] serve <dir> Serve all files inside directory "dir" using HTTP server, watch changes on markup files and convert them to HTML files automatically. If the address is not set, its default to ":8080".
2019-04-19ciigo: program to write static web server using asciidoc markup languageShulhan
This first commit provide the following features, * automatically regenerate asciidoc files on development, * generate static and HTML files into Go source code, and * running binary with embedded contents