-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
45 lines (33 loc) · 1.52 KB
/
justfile
File metadata and controls
45 lines (33 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env just --justfile
set dotenv-load
# Lists available commands.
default:
@just --list
# Careful! This removes Koha/ and package.json
clean:
#!/usr/bin/env bash
rm -rf Koha;
rm -f package.json
# Initialises a new koha plugin based on your input.
init:
carton exec ./scripts/init.pl
# Adds a component to your initialised koha plugin based on your input.
add component:
carton exec ./scripts/add.pl {{component}}
# Increments the version in your local .env, base module and package.json if present. This also updates date_updated!
increment type='patch' times='1':
./scripts/increment.pl --version "${PLUGIN_VERSION}" --name "${PLUGIN_NAME}" --type {{type}} --times {{times}}
# Creates a kpz file by zipping the current state of the `Koha` directory.
package:
./scripts/package.sh "${PLUGIN_NAME}" "${PLUGIN_RELEASE_FILENAME}" "${PLUGIN_VERSION}"
# Updates the staticapi.json file within the plugin to expose all files within static directories.
staticapi:
./scripts/staticapi.sh "${PLUGIN_NAME}" ${PLUGIN_STATIC_DIRS}
ktd container="kohadev-koha-1" binary="docker":
./scripts/ktd.sh {{container}} {{binary}}
# Attempts to update the koha-plugin repository itself. If you've updated core components, you'll have to resolve the conflicts yourself, though.
update-meta:
./scripts/update-meta.sh
# Seeds test fixtures (rooms, equipment, open hours) into the KTD database for testing
seed container="kohadev-koha-1" binary="docker":
CONTAINER_NAME={{container}} DOCKER_BINARY={{binary}} ./testing/seed-fixtures.pl