diff options
author | Eduardo Julian | 2019-03-26 19:46:05 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-03-26 19:46:05 -0400 |
commit | e76fd0e68475f65e75c1339cfcef6a8114707472 (patch) | |
tree | a48f8f66eb0b53d02a6722ef81206857221d2895 | |
parent | 5ce3411d68cf11daa0ff3e5171afced429696480 (diff) |
Some convenient commands I use while developing Lux.
-rw-r--r-- | commands | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/commands b/commands new file mode 100644 index 000000000..1717697bf --- /dev/null +++ b/commands @@ -0,0 +1,55 @@ +# Old Lux compiler + # Re-build and re-install + cd ~/lux/luxc/ && lein clean && lein install + # Run JBE + cd ~/lux/luxc/jbe/ && ./jbe.sh + +# Leiningen plugin + # Re-install + cd ~/lux/lux-lein/ && lein install + +# Standard Library + # Test + cd ~/lux/stdlib/ && lein clean && lein_2_7_1 with-profile bibliotheca lux auto test + cd ~/lux/stdlib/ && lein_2_7_1 with-profile bibliotheca lux auto test + # Install + cd ~/lux/stdlib/ && lein_2_7_1 install + # Document + cd ~/lux/stdlib/ && lein_2_7_1 with-profile scriptum lux auto build + +# licentia: License maker + # Build + cd ~/lux/stdlib/ && lein_2_7_1 with-profile licentia lux auto build + # Test + cd ~/lux/stdlib/ && lein_2_7_1 with-profile licentia lux auto test + # Run + cd ~/lux/stdlib/ && java -jar target/program.jar --input ../license.json --output ../license.txt + +# JavaScript compiler + # Test + cd ~/lux/lux-js/ && lein_2_7_1 lux auto test + cd ~/lux/lux-js/ && lein clean && lein_2_7_1 lux auto test + # Build + cd ~/lux/lux-js/ && lein_2_7_1 lux auto build + cd ~/lux/lux-js/ && lein clean && lein_2_7_1 lux auto build + # Try + cd ~/lux/lux-js/ && java -jar target/program.jar build --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target --module test/lux + +# Run compiler test suite +cd ~/lux/new-luxc/ && lein_2_7_1 lux auto test +cd ~/lux/new-luxc/ && lein clean && lein_2_7_1 lux auto test +cd ~/lux/new-luxc/ && lein_2_7_1 lux auto build +cd ~/lux/new-luxc/ && lein clean && lein_2_7_1 lux auto build + +# Count lines of code +find . -name '*.lux' | xargs wc -l + +# Clean All +cd ~/lux/luxc/ && lein clean && cd ~/lux/stdlib/ && lein clean && cd ~/lux/new-luxc/ && lein clean + +# REPL +cd ~/lux/new-luxc/ && java -jar target/program.jar repl --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target + +# Build +cd ~/lux/new-luxc/ && java -jar target/program.jar build --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target --module tests + |