aboutsummaryrefslogtreecommitdiff
path: root/stdlib/commands.md
blob: 94337334ac2ce029b7456ae5fe57327631cdc920 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Standard Library

## Test

```
cd ~/lux/stdlib/ \
&& lein clean \
&& lein with-profile bibliotheca lux auto test

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with jvm with bibliotheca auto test

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with js with bibliotheca auto test

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with lua with bibliotheca auto test

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with python with bibliotheca auto test

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with ruby with bibliotheca auto test
```

## Deploy

```
cd ~/lux/stdlib/ \
&& lux install

cd ~/lux/stdlib/ \
&& lux deploy snapshots $NEXUS_USERNAME $NEXUS_PASSWORD

cd ~/lux/stdlib/ \
&& lux deploy releases $NEXUS_USERNAME $NEXUS_PASSWORD
```

## Generate documentation

```
cd ~/lux/stdlib/ \
&& lein clean \
&& lein with-profile scriptum lux auto build

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with jvm with scriptum auto test

### JVM
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with jvm with scriptum build \
&& java -jar target/program.jar > ~/lux/documentation/library/standard/jvm.md

### JS
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with js with scriptum build \
&& node ~/lux/stdlib/target/program.js > ~/lux/documentation/library/standard/js.md

### Lua
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with lua with scriptum build \
&& ~/lua-5.4.2/install/bin/lua ~/lux/stdlib/target/program.lua > ~/lux/documentation/library/standard/lua.md

### Python
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with python with scriptum build \
&& python3 ~/lux/stdlib/target/program.py > ~/lux/documentation/library/standard/python.md

### Ruby
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with ruby with scriptum build \
&& RUBY_THREAD_VM_STACK_SIZE=15700000 ruby ~/lux/stdlib/target/program/main.rb | tee ~/lux/documentation/library/standard/ruby.md
```

---

# Aedifex: Build system

## Build

```
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with aedifex auto build

cd ~/lux/stdlib/ \
&& lux clean \
&& lux with aedifex build \
&& mv target/program.jar aedifex.jar

cd ~/lux/stdlib/ \
&& lein clean \
&& lein with-profile aedifex lux auto build

cd ~/lux/stdlib/ \
&& lein clean \
&& lein with-profile aedifex lux build \
&& mv target/program.jar aedifex.jar
```

## Test

```
cd ~/lux/stdlib/ \
&& lux clean \
&& lux with aedifex auto test
```