starting with systems
parent
229f10683a
commit
cf9c7c122e
|
@ -21,7 +21,7 @@ services:
|
|||
- ${R3_CONTEXT}/.r3_history:/app/.r3_history
|
||||
networks:
|
||||
- r3_network
|
||||
command: "start"
|
||||
command: "build"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
r3_network:
|
||||
|
|
|
@ -9,7 +9,7 @@ r3_completions() {
|
|||
# TASK=${#COMP_WORDS[1]}
|
||||
|
||||
if [ "${#COMP_WORDS[@]}" == "2" ]; then
|
||||
COMPREPLY=($(compgen -W "build-graph create build-events update-options update-templates update-methods update-token-db" "${COMP_WORDS[1]}"))
|
||||
COMPREPLY=($(compgen -W "build-dist create build-events update-options update-templates update-methods update-token-db" "${COMP_WORDS[1]}"))
|
||||
fi
|
||||
|
||||
if [[ "${#COMP_WORDS[@]}" == "3" && ( "${COMP_WORDS[1]}" == "update-templates" || "${COMP_WORDS[1]}" == "update-options" || "${COMP_WORDS[1]}" == "update-methods" ) ]]; then
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0bd771da31a68e56daf1620df2216cd4538534f1
|
||||
Subproject commit 3835bbe9fae5f3374bde66fe0c50c8dde22fd8f9
|
14
r3.sh
14
r3.sh
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PATCH=0
|
||||
|
||||
usage() {
|
||||
echo "Usage : r3 <task> <container>"
|
||||
}
|
||||
|
@ -218,7 +220,7 @@ then
|
|||
# exit 5
|
||||
# fi
|
||||
#
|
||||
# ./update_templates.php all build-graph
|
||||
# ./update_templates.php all build-dist
|
||||
#
|
||||
# cd - 2>&1 || exit 3
|
||||
|
||||
|
@ -267,7 +269,7 @@ check_file_found() {
|
|||
|
||||
}
|
||||
|
||||
if [ "${TASK}" = 'build-graph' ];
|
||||
if [ "${TASK}" = 'build-dist' ];
|
||||
then
|
||||
|
||||
echo "building graph"
|
||||
|
@ -278,7 +280,7 @@ then
|
|||
|
||||
# grep -n "^class.*extends" src/r3/* -R | sed "s/src\/r3\(.*\).js.*class\s*\(.*\) extends \(.*\) {/R3.\3.\2 = require('.\1.js');/" | sed "s/R3Object/Object/"
|
||||
|
||||
./update_templates.php all build-graph
|
||||
./update_templates.php all build-dist
|
||||
|
||||
cd - 2>&1 || exit 3
|
||||
|
||||
|
@ -294,6 +296,10 @@ then
|
|||
|
||||
cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
|
||||
|
||||
# bump version
|
||||
# shellcheck disable=SC2016
|
||||
sed -i -E 's/([0-9]+\.[0-9]+\.)([0-9]+)/echo "\1$((\2+1))"/e' version
|
||||
|
||||
COMMANDS=$(grep "r3 create" .r3_history | sed "s/^.*r3 /r3 /" | sed "s/\s+/ /g" | sort --unique | perl -pe "s/\n/,/" | perl -pe "s/\s+,/,/g" | perl -pe "s/,$//")
|
||||
FILES=$(grep "r3 create" .r3_history | sed "s/^.*r3 /r3 /" | sed "s/\s+/ /g" | sort --unique | cut -d' ' -f3 | sed 's/\([A-Z]\)/-\1/g' | awk '{print tolower($0)}' | sed "s/^/r3/" | sed "s/$/.js/")
|
||||
|
||||
|
@ -348,7 +354,7 @@ then
|
|||
|
||||
echo "building graph"
|
||||
|
||||
./update_templates.php all build-graph
|
||||
./update_templates.php all build-dist
|
||||
|
||||
cd - 2>&1 || exit 3
|
||||
|
||||
|
|
Loading…
Reference in New Issue