diff options
author | Criztian Haunsen <cristianhaunsen@gmail.com> | 2020-08-05 23:07:26 -0300 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-08-10 11:06:55 +0800 |
commit | 27c7d9fe301f730a79f522a36271f3caeeea9d2e (patch) | |
tree | a7a7e105e3fd99b7d176eb654e84b6706e0cc9e1 /tup | |
parent | 933b1ebf0eae30756b65393adec03773f28a8a07 (diff) | |
download | yuescript-27c7d9fe301f730a79f522a36271f3caeeea9d2e.tar.gz yuescript-27c7d9fe301f730a79f522a36271f3caeeea9d2e.tar.bz2 yuescript-27c7d9fe301f730a79f522a36271f3caeeea9d2e.zip |
Added example for tup. Tup is a file-based build system for Linux, OSX, and Windows.
Diffstat (limited to 'tup')
-rw-r--r-- | tup/Tupfile | 1 | ||||
-rw-r--r-- | tup/Tupfile.ini | 0 | ||||
-rw-r--r-- | tup/Tuprules.tup | 1 | ||||
-rw-r--r-- | tup/app.moon | 7 | ||||
-rw-r--r-- | tup/t/Tupfile | 1 | ||||
-rw-r--r-- | tup/t/extra.moon | 3 |
6 files changed, 13 insertions, 0 deletions
diff --git a/tup/Tupfile b/tup/Tupfile new file mode 100644 index 0000000..f0fe651 --- /dev/null +++ b/tup/Tupfile | |||
@@ -0,0 +1 @@ | |||
include_rules | |||
diff --git a/tup/Tupfile.ini b/tup/Tupfile.ini new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tup/Tupfile.ini | |||
diff --git a/tup/Tuprules.tup b/tup/Tuprules.tup new file mode 100644 index 0000000..6583c79 --- /dev/null +++ b/tup/Tuprules.tup | |||
@@ -0,0 +1 @@ | |||
: foreach *.moon |> moonp %f |> %B.lua | |||
diff --git a/tup/app.moon b/tup/app.moon new file mode 100644 index 0000000..3adc481 --- /dev/null +++ b/tup/app.moon | |||
@@ -0,0 +1,7 @@ | |||
1 | import extra from require "t.extra" | ||
2 | |||
3 | reverse = string.reverse | ||
4 | |||
5 | "sulpnooM morf olleH" |> reverse |> print | ||
6 | |||
7 | print extra! | ||
diff --git a/tup/t/Tupfile b/tup/t/Tupfile new file mode 100644 index 0000000..f0fe651 --- /dev/null +++ b/tup/t/Tupfile | |||
@@ -0,0 +1 @@ | |||
include_rules | |||
diff --git a/tup/t/extra.moon b/tup/t/extra.moon new file mode 100644 index 0000000..76e05a4 --- /dev/null +++ b/tup/t/extra.moon | |||
@@ -0,0 +1,3 @@ | |||
1 | extra = () -> "Hello from extra" | ||
2 | |||
3 | :extra | ||