Skip to content

Commit

Permalink
upgrade phel:0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 17, 2024
1 parent 716a98c commit b59d188
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8

[*.phel]
indent_size = 2
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"require": {
"php": ">=8.2",
"ext-readline": "*",
"phel-lang/phel-lang": "^0.12",
"chemaclass/phel-cli-gui": "dev-main"
"phel-lang/phel-lang": "^0.13",
"chemaclass/phel-cli-gui": "^0.2"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
Expand All @@ -24,7 +24,7 @@
"@play"
],
"build": "vendor/bin/phel build --no-cache",
"play": "php out/play.php",
"play": "php out/main.php",
"test": "vendor/bin/phel test",
"format": "vendor/bin/phel format src tests"
},
Expand Down
6 changes: 3 additions & 3 deletions phel-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
->setTestDirs(['tests'])
->setVendorDir('vendor')
->setOut((new PhelOutConfig())
->setDestDir('out')
->setMainPhelNamespace('phel-snake\main')
->setMainPhpFilename('play'))
->setMainPhpPath('out/main.php'))
->setIgnoreWhenBuilding(['local.phel'])
->setKeepGeneratedTempFiles(false);
->setKeepGeneratedTempFiles(false)
;
2 changes: 1 addition & 1 deletion src/main.phel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(:require phel-snake\simple-version\game :refer [simple-game])
(:require phel-snake\util :refer [get-from-list]))

(when-not *compile-mode*
(when-not *build-mode*
(if (get-from-list argv "simple" false)
(simple-game)
(full-game)))

0 comments on commit b59d188

Please sign in to comment.