|
7 | 7 | [play.tui-002-game-of-life.main :as main])) |
8 | 8 |
|
9 | 9 | (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"} |
14 | 12 | :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"}]}) |
24 | 23 |
|
25 | 24 | (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"} |
30 | 27 | :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" |
36 | 37 | :target "src" |
37 | | - :main 'play.tui-002-game-of-life.main |
38 | | - :emit {:code {:label true}}}]}) |
| 38 | + :emit {:code {:transforms {:full [inject-esm]}}}}]}) |
39 | 39 |
|
40 | 40 | (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) |
43 | 42 |
|
44 | 43 | (defn -main |
45 | 44 | [] |
|
0 commit comments