mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
Sets license for all node.js packages to `GPL-2.0-or-later` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Simplified license compliance verification by removing legacy script logic. - Updated licensing terms across components to GPL-2.0-or-later for broader compatibility. - **Documentation** - Revised setup instructions to indicate that the use of the Just build tool is now optional. - **New Features** - Added fallback support in the build automation tool to ensure smoother operations when targets are missing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
# The first recipe in a justfile is considered the default recipe,
|
|
# which means it runs when `just` is called with no arguments
|
|
|
|
default: list-commands
|
|
|
|
list-commands:
|
|
@just --list --justfile {{justfile()}} --list-heading $'\nMonorepo recipes:\n'
|
|
|
|
# Prepares the repo for development
|
|
setup:
|
|
# ignore personal vscode settings. to contribute a change, use `just stop-ignore $file`
|
|
@just ignore .vscode/settings.json api/.vscode/settings.json web/.vscode/settings.json
|
|
# ignore api local-state files
|
|
@just ignore api/dev/states/myservers.cfg api/dev/Unraid.net/myservers.cfg
|
|
|
|
pnpm install
|
|
just unraid-ui/setup
|
|
|
|
# restore notification files under api/dev
|
|
restore-notifications:
|
|
git checkout ./api/dev/notifications
|
|
|
|
# starts ignoring a file already tracked by git. (gitignore will not apply to these files)
|
|
[group('git')]
|
|
[no-cd]
|
|
ignore +files:
|
|
#!/usr/bin/env bash
|
|
for file in {{ files }}; do
|
|
if [ ! -f "$file" ]; then
|
|
echo "Warning: $file does not exist"
|
|
continue
|
|
fi
|
|
git update-index --skip-worktree "$file"
|
|
done
|
|
|
|
# resumes normal tracking of an ignored tracked file.
|
|
[group('git')]
|
|
[no-cd]
|
|
stop-ignoring file:
|
|
git update-index --no-skip-worktree {{ file }}
|
|
|
|
# lists tracked files where further changes are being ignored.
|
|
[group('git')]
|
|
list-ignored:
|
|
-git ls-files -v | grep '^S'
|
|
|
|
# Checks a node.js project's compliance with GPL-2.0-or-later.
|
|
[no-cd]
|
|
@compliance:
|
|
pnpx license-checker --excludePrivatePackages --direct --production --onlyAllow="MIT;BSD-2-Clause;BSD-3-Clause;ISC;Apache-2.0;Zlib;X11;Python-2.0;Artistic-2.0;PostgreSQL;GPL-2.0-or-later;GPL-3.0;AGPL-3.0;LGPL-2.1;LGPL-3.0"
|