All Projects → makiuchi-d → arelo

makiuchi-d / arelo

Licence: MIT license
a simple auto reload (live reload) utility

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to arelo

Realize
Realize is the #1 Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.
Stars: ✭ 4,162 (+7607.41%)
Mutual labels:  livereload, task-runner, filewatcher, watcher
universal-hot-reload
Hot reload client and server webpack bundles for the ultimate development experience
Stars: ✭ 79 (+46.3%)
Mutual labels:  livereload, live-reload, reload
Air
☁️ Live reload for Go apps
Stars: ✭ 5,257 (+9635.19%)
Mutual labels:  live-reload, task-runner, watcher
taskctl
Concurrent task runner, developer's routine tasks automation toolkit. Simple modern alternative to GNU Make 🧰
Stars: ✭ 237 (+338.89%)
Mutual labels:  task-runner, filewatcher, watcher
Phulp
The task manager for php
Stars: ✭ 294 (+444.44%)
Mutual labels:  task-runner, watcher
Godo
golang build tool in the spirt of rake, gulp
Stars: ✭ 523 (+868.52%)
Mutual labels:  task-runner, watcher
Vscode Live Server
Launch a development local Server with live reload feature for static & dynamic pages.
Stars: ✭ 3,275 (+5964.81%)
Mutual labels:  livereload, live-reload
hotbuild
a cross platform hot compilation tool for golang
Stars: ✭ 181 (+235.19%)
Mutual labels:  live-reload, watcher
live-reload-vanilla-website-template
Template to build a website without a front-end framework, including transpilation of ES6+ JavaScript and Sass support
Stars: ✭ 47 (-12.96%)
Mutual labels:  livereload, live-reload
duty
A simple task runner.
Stars: ✭ 36 (-33.33%)
Mutual labels:  task-runner
go-docker
Sample code and dockerfiles accompanying the blog post The Ultimate Guide to Writing Dockerfiles for Go Web-apps
Stars: ✭ 89 (+64.81%)
Mutual labels:  live-reload
my-swift-projects
An overview of my most relevant open-source projects on GitHub
Stars: ✭ 261 (+383.33%)
Mutual labels:  filewatcher
elk
🦌 Minimalist yaml based task runner
Stars: ✭ 43 (-20.37%)
Mutual labels:  task-runner
django-simple-task
Simple background task for Django 3
Stars: ✭ 88 (+62.96%)
Mutual labels:  task-runner
3dub
www dev server with livereload, file watching, http2, https, self signed cert generation
Stars: ✭ 28 (-48.15%)
Mutual labels:  livereload
active reloader rb
Rails gem that reloads browser as soon as any file is changed
Stars: ✭ 11 (-79.63%)
Mutual labels:  reload
elm-factory
Dev and build on Elm applications
Stars: ✭ 22 (-59.26%)
Mutual labels:  livereload
gilbert
Build system and task runner for Go projects
Stars: ✭ 105 (+94.44%)
Mutual labels:  task-runner
meerkat
Watch your following activities on Instagram.
Stars: ✭ 31 (-42.59%)
Mutual labels:  watcher
ansible-taskrunner
Ansible Taskrunner - ansible-playbook wrapper with YAML-abstracted python click cli options!
Stars: ✭ 14 (-74.07%)
Mutual labels:  task-runner

Arelo - a simple auto reload utility

go test Go Report Card

Arelo executes the specified command and monitors the files under the target directory. When the file that matches the pattern has been modified, restart the command.

Features

  • Simple command line interface without config file
  • Monitoring file patterns are specified as glob
    • globstar (**; matches to zero or more directories) supported
    • can match the no extention filename
    • can match the hidden filename which starts with "."
  • Safely terminate child processes
  • Any command line tool can be executed
    • not only go project
    • can execute shell script
  • No unnesesary servers
    • no need to use local port unlike http server

Install

go install github.com/makiuchi-d/arelo@latest

Or, you can download the executable binaries from the release page.

To get a static-linked executable binary, build with CGO_ENABLED=0.

Quick start

Run this command in your Go project directory.

arelo -p '**/*.go' -i '**/.*' -i '**/*_test.go' -- go run .

Usage

Usage: arelo [OPTION]... -- COMMAND
Run the COMMAND and restart when a file matches the pattern has been modified.

Options:
  -d, --delay duration   duration to delay the restart of the command. (default 1s)
  -h, --help             show this document.
  -i, --ignore glob      ignore pathname glob pattern.
  -p, --pattern glob     trigger pathname glob pattern. (default "**")
  -s, --signal signal    signal to stop the command. (default "SIGTERM")
  -t, --target path      observation target path. (default "./")
  -v, --verbose          verbose output.
  -V, --version          show version.

Options

-t, --target path

Monitor file modifications under the path directory. The subdirectories are also monitored unless they match to the ignore patterns.

This option can be set multiple times.

The default value is the current directory ("./").

Note: This option can be file instead of directory, but arelo cannot follow modification after the file has been removed/renamed.

-p, --pattern glob

Restart command when the modified file is matched to this pattern.

The pattern is specified as an extended glob that supports {alt1,...}, ** like zsh or bash with globstar option. And note that the path delimiter is / even on Windows.

This option can set multiple times.

The default value ("**") is a pattern that matches any file in the target directories and their subdirectories.

-i, --ignore glob

Ignore the file or directory whose names is matched to this pattern.

This option takes precedence over the --pattern option.

This option can set multiple times.

-d, --delay duration

Delay the restart of the command from the detection of the pattern matched file modification. The detections within the delay are ignored.

The duration is specified as a number with a unit suffix ("ns", "us" (or "µs"), "ms", "s", "m", "h").

-s, --signal signal

This signal will be sent to stop the command on restart. The default signal is SIGTERM.

This option can be SIGHUP, SIGINT, SIGQUIT, SIGKILL, SIGUSR1, SIGUSR2, SIGWINCH or SIGTERM.

This option is not available on Windows.

-v, --verbose

Output logs verbosely.

-h, --help

Print usage.

Example

arelo -t ./src -t ./html -p '**/*.{go,html,yaml}' -i '**/.*' -- go run .

-t ./src -t ./html

Monitor files under the ./src or ./html directories.

-p '**/*.{go,html,yaml}'

Restart command when any *.go, *.html, *.yml file under the target, sub, and subsub... directories modified.

-i '**/.*'

Ignore files/directories whose name starts with '.'.

go run .

Command to run.

Similar projects

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].