-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
52 lines (37 loc) · 1.15 KB
/
justfile
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
45
46
47
48
49
50
51
52
# Main justfile to run all the scripts
#
# To install 'just' see https://github.com/casey/just#installation
# Apache-2.0
# Ensure all properties are exported as shell env-vars
set export
# set the current directory, and the location of the test dats
DIR := justfile_directory()
# record some of the colour formatting
bold :='\033[1m'
normal:='\033[0m'
red:='\033[0;31m'
blue:='\033[0;34m'
FLATC_DIR := "/home/matthew"
# Default with basic intro text
_default:
@echo "{{blue}}{{bold}}ODrive WS Protocol{{normal}}" && echo
@just --list
python:
#!/bin/bash
set -ev -o pipefail
rm -rf python_lib/odrive_wsprotocol || true
{{FLATC_DIR}}/flatc --python -o python_lib/ --python-typing ./protocol/protocol.fbs
pushd python_lib
poetry build
#scp dist/odrive_wsprotocol-0.1.0-py3-none-any.whl matthew@192.168.1.102:/home/matthew/github.com
popd
typescript:
#!/bin/bash
set -ev -o pipefail
rm -rf typescript_lib/src || true
{{FLATC_DIR}}/flatc --ts --gen-object-api -o typescript_lib/src ./protocol/protocol.fbs
pushd typescript_lib
npm run build
npm pack
popd
build: python typescript