Sybren A. Stüvel
5f37bcb629
Convert most of the code in `Makefile` to [Magefile](https://magefile.org/): This makes it possible to build Flamenco without `make` (and the POSIX environment/commands it expect) by running: ```bash $ go run mage.go webappInstallDeps # Only on the first build. $ go run mage.go build ``` More efficient builds are possible with other commands, and some release-related commands still require `make`. At least the barrier to entry should be considerably lower (compared to having to install Make + Cygwin/MSYS2 on Windows). Fix: #102633 This does not port the building of release packages, so it doesn't address #102671. ### Main Targets | Target | Description | |----------|---------------------------------------------------------------------------------| | build | Build Flamenco Manager and Flamenco Worker, including the webapp and the add-on | | check | Run unit tests, check for vulnerabilities, and run the linter | | clean | Remove executables and other build output | | generate | Generate code (OpenAPI and test mocks) | ### All Targets Get these via `go run mage.go -l`: ``` Targets: build Flamenco Manager and Flamenco Worker, including the webapp and the add-on check Run unit tests, check for vulnerabilities, and run the linter clean Remove executables and other build output flamencoManager Build Flamenco Manager with the webapp and add-on ZIP embedded flamencoManagerWithoutWebapp Only build the Flamenco Manager executable, do not rebuild the webapp flamencoWorker Build the Flamenco Worker executable generate code (OpenAPI and test mocks) generateGo Generate Go code for Flamenco Manager and Worker generateJS Generate JavaScript code for the webapp generatePy Generate Python code for the add-on govulncheck Check for known vulnerabilities. staticcheck Analyse the source code. test Run unit tests version Show which version information would be embedded in executables vet Run `go vet` webappInstallDeps Use Yarn to install the webapp's NodeJS dependencies webappStatic Build the webapp as static files that can be served ``` Co-authored-by: Mateus Abelli <mateusabelli@gmail.com> Reviewed-on: #104341
54 lines
817 B
Plaintext
54 lines
817 B
Plaintext
*.exe
|
|
*.sqlite
|
|
*.sqlite-shm
|
|
*.sqlite-wal
|
|
*.db
|
|
*.blend[0-9]
|
|
*.flamenco.blend
|
|
.env
|
|
|
|
/flamenco-manager
|
|
/flamenco-worker
|
|
/flamenco-manager_race
|
|
/flamenco-worker_race
|
|
/shaman-checkout-id-setter
|
|
/stresser
|
|
/job-creator
|
|
/mage
|
|
/addon-packer
|
|
flamenco-manager.yaml
|
|
flamenco-worker.yaml
|
|
flamenco-worker-credentials.yaml
|
|
node_modules/
|
|
/vendor/
|
|
|
|
# Directory for custom job compiler scripts:
|
|
/scripts/
|
|
|
|
# Default storage locations:
|
|
/flamenco-manager-storage/
|
|
/flamenco-shared-storage/
|
|
|
|
# Old default storage locations:
|
|
/task-logs/
|
|
/flamenco-storage/
|
|
|
|
__pycache__
|
|
*.pyc
|
|
.mypy_cache/
|
|
.openapi-generator/
|
|
.hugo_build.lock
|
|
.openapi-generator-*.log
|
|
|
|
web/manager-api/dist/
|
|
web/static/
|
|
web/project-website/public/
|
|
web/project-website/resources/_gen/
|
|
/dist/
|
|
/tools/
|
|
|
|
# IDE related stuff
|
|
*.DS_Store
|
|
.vscode/settings.json
|
|
.vscode/launch.json
|