Skip to content

Commit f8d3575

Browse files
author
Chris Zheng
committed
Merge branch 'main' of github.com:/zcaudate-xyz/foundation-base
2 parents c6eeba5 + f134ed6 commit f8d3575

14 files changed

Lines changed: 99 additions & 104 deletions

File tree

src-build/component/build_native_index.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
:build ".build/native-index"
6060
:github {:repo "zcaudate-xyz/demo.foundation-base"
6161
:description "Js Web Components"}
62+
:triggers #{"js" "component.web-native"}
6263
:sections {:common [+expo-makefile+
6364
+github-workflows-build+]
6465
:node [{:type :gitignore,
@@ -140,10 +141,7 @@
140141
:path-separator "/"}}}}]})
141142

142143
(def +init+
143-
(make/triggers-set
144-
COMPONENT-NATIVE
145-
#{"js"
146-
"component.web-native"}))
144+
nil)
147145

148146
(comment
149147

src-build/component/build_native_v1.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
:build ".build/native-v1"
6060
:github {:repo "zcaudate-xyz/demo.foundation-base"
6161
:description "Js Web Components"}
62+
:triggers #{"js" "component.web-native"}
6263
:sections {:common [+expo-makefile+
6364
+github-workflows-build+
6465
{:type :raw
@@ -165,10 +166,7 @@
165166
:emit {:code {:label true}}}]})
166167

167168
(def +init+
168-
(make/triggers-set
169-
COMPONENT-NATIVE
170-
#{"js"
171-
"component.web-native"}))
169+
nil)
172170

173171
(comment
174172

src-build/play/c_000_pthreads_hello/build.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{:github {:repo "zcaudate/play.c-000-pthreads-hello"
2222
:description "Simple Posix Threads Example"}
2323
:orgfile "Main.org"
24+
:triggers '#{play.c-000-pthreads-hello.main}
2425
:sections {:setup [{:type :gitignore
2526
:main ["bin" "out"]}
2627
{:type :makefile
@@ -32,7 +33,7 @@
3233
:target "src"}]})
3334

3435
(def +init+
35-
(do (make/triggers-set PROJECT '#{play.c-000-pthreads-hello.main})))
36+
nil)
3637

3738
(defn -main
3839
[]

src-build/play/ngx_000_hello/build.clj

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
77

88
(def.make PROJECT
99
{:github {:repo "zcaudate/play.ngx-000-hello"
10-
:description "Simple Openresty Nxg Threads Example"}
10+
:description "Simple OpenResty Example"}
1111
:orgfile "Main.org"
12-
:sections {:setup [{:type :makefile
13-
:main [[:run ["resty main.lua"]]
14-
[:dev ["echo main.lua | entr -r resty main.lua"]]]}]}
15-
:default [{:type :module.graph
16-
:lang :lua
17-
:main 'play.ngx-000-hello.main
18-
:emit {:code {:label true}}}]})
12+
:triggers '#{play.ngx-000-hello.main}
13+
:sections {:setup [{:type :gitignore
14+
:main ["bin" "out"]}
15+
{:type :makefile
16+
:main +makefile+}]}
17+
:default [{:type :module.single
18+
:lang :lua
19+
:main 'play.ngx-000-hello.main
20+
:file "hello.lua"
21+
:target "lua"}]})
1922

2023
(def +init+
21-
(do (make/triggers-set PROJECT '#{play.ngx-000-hello.main})))
24+
nil)
2225

2326
(defn -main
2427
[]

src-build/play/ngx_001_eval/build.clj

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,21 @@
99

1010
(def.make PROJECT
1111
{:github {:repo "zcaudate/play.ngx-001-eval"
12-
:description "Example Openresty Evaluation Server"}
12+
:description "Simple OpenResty Eval Example"}
1313
:orgfile "Main.org"
14-
:sections
15-
{:setup [{:type :gitignore
16-
:main ["*_temp" "runtime"]}
17-
{:type :makefile
18-
:main [[:dev ["ls nginx.conf | entr -r make restart"]]
19-
[:start ["nginx" "-p" "runtime" "-c" "../nginx.conf"]]
20-
[:stop ["nginx" "-s" "stop"]]
21-
[:refresh ["nginx" "-s" "reload"]]
22-
[:restart
23-
["@nginx" "-s" "stop"]
24-
["nginx" "-p" "runtime" "-c" "../nginx.conf"]
25-
["@alerter" "-message" "'NGINX RESTARTED'" "-title" "'STATSNET'" "-timeout" "2" ">" "/dev/null"]]]}
26-
{:type :blank
27-
:file "runtime/logs/error.log"}]}
28-
:default [{:type :nginx.conf
29-
:main #'main/+nginx-conf+}]})
14+
:triggers '#{play.ngx-001-eval.main}
15+
:sections {:setup [{:type :gitignore
16+
:main ["bin" "out"]}
17+
{:type :makefile
18+
:main +makefile+}]}
19+
:default [{:type :module.single
20+
:lang :lua
21+
:main 'play.ngx-001-eval.main
22+
:file "eval.lua"
23+
:target "lua"}]})
3024

3125
(def +init+
32-
(do (make/triggers-set PROJECT '#{play.ngx-001-eval.main})))
26+
nil)
3327

3428
(defn -main
3529
[]

src-build/play/tui_000_counter/build.clj

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@
77
[play.tui-000-counter.main :as main]))
88

99
(def.make PROJECT
10-
{:tag "tui-000-counter"
11-
:build ".build/tui-000-counter"
12-
:github {:repo "zcaudate/play.tui-000-counter"}
10+
{:github {:repo "zcaudate/play.tui-000-counter"
11+
:description "Simple Blessed TUI Example"}
1312
:orgfile "Main.org"
14-
:sections {:setup [webpack/+node-basic+
15-
webpack/+node-makefile+
16-
webpack/+node-gitignore+]}
17-
:default [{:type :module.single
18-
:name "tui-000-counter"
19-
:lang :js
20-
:main 'play.tui-000-counter.main
21-
:file "src/main.js"
22-
:emit {:code {:label true}
23-
#_#_:export {:suppress true}
24-
#_#_:link {:suppress true}}}]})
13+
:triggers '#{play.tui-000-counter.main}
14+
:sections {:setup [{:type :gitignore
15+
:main ["bin" "out"]}
16+
{:type :makefile
17+
:main +makefile+}]}
18+
:default [{:type :module.single
19+
:lang :js
20+
:main 'play.tui-000-counter.main
21+
:file "index.js"
22+
:target "src"}]})
2523

2624
(def +init+
27-
(do (make/triggers-set PROJECT '#{play.tui-000-counter.main})))
25+
nil)
2826

2927
(defn -main
3028
[]

src-build/play/tui_001_fetch/build.clj

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,22 @@
77
[play.tui-001-fetch.main :as main]))
88

99
(def.make PROJECT
10-
{:tag "tui-001-fetch"
11-
:build ".build/tui-001-fetch"
12-
:github {:repo "zcaudate/play.tui-001-fetch"}
10+
{:github {:repo "zcaudate/play.tui-001-fetch"
11+
:description "Simple Blessed TUI Fetch Example"}
1312
:orgfile "Main.org"
14-
:sections {:setup [webpack/+node-basic+
15-
webpack/+node-makefile+
16-
webpack/+node-gitignore+]}
17-
:default [{:type :module.single
18-
:lang :js
19-
:main 'play.tui-001-fetch.main
20-
:file "src/main.js"
21-
:emit {:code {:label true}
22-
:export {:suppress true}
23-
:link {:suppress true}}}]})
13+
:triggers '#{play.tui-001-fetch.main}
14+
:sections {:setup [{:type :gitignore
15+
:main ["bin" "out"]}
16+
{:type :makefile
17+
:main +makefile+}]}
18+
:default [{:type :module.single
19+
:lang :js
20+
:main 'play.tui-001-fetch.main
21+
:file "index.js"
22+
:target "src"}]})
2423

2524
(def +init+
26-
(do (make/triggers-set PROJECT '#{play.tui-001-fetch.main})))
25+
nil)
2726

2827
(defn -main
2928
[]

src-build/play/tui_002_game_of_life/build.clj

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,38 @@
77
[play.tui-002-game-of-life.main :as main]))
88

99
(def.make PROJECT_COMMONJS
10-
{:tag "tui-002-game-of-life-commonjs"
11-
:build ".build/tui-002-game-of-life-commonjs"
12-
:github {:repo "zcaudate/play.tui-002-game-of-life"
13-
:description "Conway's Game of Life for React Blessed"}
10+
{:github {:repo "zcaudate/play.tui-002-game-of-life"
11+
:description "Simple Blessed TUI Game of Life Example"}
1412
:orgfile "Main.org"
15-
:sections {:setup [webpack/+node-basic+
16-
webpack/+node-makefile+
17-
webpack/+node-gitignore+]}
18-
:default [{:type :module.graph
19-
:lang :js
20-
:target "src"
21-
:main 'play.tui-002-game-of-life.main
22-
:emit {:lang/format :commonjs
23-
:code {:label true}}}]})
13+
:triggers '#{play.tui-002-game-of-life.main}
14+
:sections {:setup [{:type :gitignore
15+
:main ["bin" "out"]}
16+
{:type :makefile
17+
:main +makefile+}]}
18+
:default [{:type :module.single
19+
:lang :js
20+
:main 'play.tui-002-game-of-life.main
21+
:file "index.js"
22+
:target "src"}]})
2423

2524
(def.make PROJECT_ESM
26-
{:tag "tui-002-game-of-life-esm"
27-
:build ".build/tui-002-game-of-life-esm"
28-
:github {:repo "zcaudate/play.tui-002-game-of-life"
29-
:description "Conway's Game of Life for React Blessed"}
25+
{:github {:repo "zcaudate/play.tui-002-game-of-life"
26+
:description "Simple Blessed TUI Game of Life Example"}
3027
:orgfile "Main.org"
31-
:sections {:setup [webpack/+node-basic+
32-
webpack/+node-makefile+
33-
webpack/+node-gitignore+]}
34-
:default [{:type :module.graph
35-
:lang :js
28+
:triggers '#{play.tui-002-game-of-life.main}
29+
:sections {:setup [{:type :gitignore
30+
:main ["bin" "out"]}
31+
{:type :makefile
32+
:main +makefile+}]}
33+
:default [{:type :module.single
34+
:lang :js
35+
:main 'play.tui-002-game-of-life.main
36+
:file "index.mjs"
3637
:target "src"
37-
:main 'play.tui-002-game-of-life.main
38-
:emit {:code {:label true}}}]})
38+
:emit {:code {:transforms {:full [inject-esm]}}}}]})
3939

4040
(def +init+
41-
(do (make/triggers-set PROJECT_COMMONJS '#{play.tui-002-game-of-life.main})
42-
(make/triggers-set PROJECT_ESM '#{play.tui-002-game-of-life.main})))
41+
nil)
4342

4443
(defn -main
4544
[]

src-build/playground/build_web_debug.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
:build ".build/web-debug"
6060
:github {:repo "zcaudate-xyz/demo.web-debug"
6161
:description "Web Debug"}
62+
:triggers #{"js" "playground.web-debug"}
6263
:sections {:common [+expo-makefile+
6364
+github-workflows-build+
6465
{:type :raw
@@ -134,10 +135,7 @@
134135
:emit {:code {:label true}}}]})
135136

136137
(def +init+
137-
(make/triggers-set
138-
PLAYGROUND-WEB-DEBUG
139-
#{"js"
140-
"playground.web-debug"}))
138+
nil)
141139

142140
(comment
143141

src/indigo/build/build_server.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
(def.make PROJECT
99
{:tag "indigo.server"
1010
:build ".build/code-dev-server"
11+
:triggers #{"indigo"}
1112
:hooks {:post [{:id :inject-ui
1213
:fn (fn [& _]
1314
#_(binding [*ns* (the-ns 'indigo.client.page-index)]
@@ -20,9 +21,7 @@
2021

2122

2223
(def +init+
23-
(make/triggers-set
24-
PROJECT
25-
#{"indigo"}))
24+
nil)
2625

2726
(comment
2827

0 commit comments

Comments
 (0)