summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--build/Dockerfile2
-rw-r--r--composer.json4
-rw-r--r--docker-compose.yml7
-rw-r--r--phel-config.php4
-rw-r--r--public/index.php2
-rw-r--r--src/app.phel4
-rw-r--r--src/controller/routes.phel6
-rw-r--r--src/module/greet.phel4
-rw-r--r--src/view/main.phel4
-rw-r--r--tests/module/greet-test.phel4
11 files changed, 23 insertions, 22 deletions
diff --git a/README.md b/README.md
index c2b43ae..73305ec 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Phel Web Skeleton
+# Lezer
[Phel](https://phel-lang.org/) is a functional programming language that compiles to PHP.
@@ -21,7 +21,7 @@ Phel requires at least PHP 8.3 and Composer.
1. Clone this repo
1. Build the image | `docker-compose up -d --build`
-1. Go inside the console | `docker exec -ti -u dev phel_web_skeleton bash`
+1. Go inside the console | `docker exec -ti -u dev lezer bash`
1. Install the dependencies | `composer install`
### Phel code
diff --git a/build/Dockerfile b/build/Dockerfile
index 0fb5af1..2698e7c 100644
--- a/build/Dockerfile
+++ b/build/Dockerfile
@@ -10,4 +10,4 @@ RUN pecl install -o -f xdebug \
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN useradd -m dev
-WORKDIR /srv/phel-web-skeleton
+WORKDIR /srv/lezer
diff --git a/composer.json b/composer.json
index 27eccef..921d611 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
- "name": "phel-lang/web-skeleton",
- "description": "A minimalistic skeleton to build your web-app using Phel Lang.",
+ "name": "ryuslash/lezer",
+ "description": "An app to manage books.",
"keywords": [
"phel",
"lisp",
diff --git a/docker-compose.yml b/docker-compose.yml
index 74089e8..23f81ea 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,11 +1,12 @@
+---
version: "3.8"
services:
- phel_web_skeleton:
+ lezer:
build:
context: .
dockerfile: build/Dockerfile
- container_name: phel_web_skeleton
+ container_name: lezer
hostname: php
volumes:
- - .:/srv/phel-web-skeleton:delegated
+ - .:/srv/lezer:delegated
diff --git a/phel-config.php b/phel-config.php
index 779f65c..504ab23 100644
--- a/phel-config.php
+++ b/phel-config.php
@@ -13,12 +13,12 @@ return (new PhelConfig())
->setKeepGeneratedTempFiles(false)
->setFormatDirs(['src', 'tests'])
->setBuildConfig((new PhelBuildConfig())
- ->setMainPhelNamespace('web-skeleton\app')
+ ->setMainPhelNamespace('lezer\app')
->setMainPhpPath('out/index.php'))
->setExportConfig((new PhelExportConfig())
->setFromDirectories(['src/phel'])
->setNamespacePrefix('PhelGenerated')
->setTargetDirectory('src/PhelGenerated'))
->setIgnoreWhenBuilding(['local.phel'])
- ->setNoCacheWhenBuilding(['web_skeleton/app'])
+ ->setNoCacheWhenBuilding(['lezer/app'])
;
diff --git a/public/index.php b/public/index.php
index 92e0753..08b8025 100644
--- a/public/index.php
+++ b/public/index.php
@@ -12,6 +12,6 @@ $appFile = $projectRootDir . "/out/index.php";
if (file_exists($appFile)) {
require_once $appFile;
} else {
- Phel::run($projectRootDir, 'web-skeleton\app');
+ Phel::run($projectRootDir, 'lezer\app');
}
diff --git a/src/app.phel b/src/app.phel
index a9d8af3..bcee391 100644
--- a/src/app.phel
+++ b/src/app.phel
@@ -1,5 +1,5 @@
-(ns web-skeleton\app
- (:require web-skeleton\controller\routes)
+(ns lezer\app
+ (:require lezer\controller\routes)
(:require phel\router :as r)
(:require phel\http :as h))
diff --git a/src/controller/routes.phel b/src/controller/routes.phel
index ae0cdf1..93674d8 100644
--- a/src/controller/routes.phel
+++ b/src/controller/routes.phel
@@ -1,6 +1,6 @@
-(ns web-skeleton\controller\routes
- (:require web-skeleton\view\main :refer [index-html])
- (:require web-skeleton\module\greet :as g)
+(ns lezer\controller\routes
+ (:require lezer\view\main :refer [index-html])
+ (:require lezer\module\greet :as g)
(:require phel\router :as r)
(:require phel\http :as h))
diff --git a/src/module/greet.phel b/src/module/greet.phel
index 239e425..09f49bd 100644
--- a/src/module/greet.phel
+++ b/src/module/greet.phel
@@ -1,4 +1,4 @@
-(ns web-skeleton\module\greet)
+(ns lezer\module\greet)
(defn greet [name]
- (str "Hello, " name)) \ No newline at end of file
+ (str "Hello, " name))
diff --git a/src/view/main.phel b/src/view/main.phel
index 34cb792..ddff28e 100644
--- a/src/view/main.phel
+++ b/src/view/main.phel
@@ -1,4 +1,4 @@
-(ns web-skeleton\view\main
+(ns lezer\view\main
(:require phel\html :refer [html doctype]))
(def- head
@@ -27,4 +27,4 @@
(def index-html (html
(doctype :html5)
head
- content)) \ No newline at end of file
+ content))
diff --git a/tests/module/greet-test.phel b/tests/module/greet-test.phel
index 1caef0f..927429b 100644
--- a/tests/module/greet-test.phel
+++ b/tests/module/greet-test.phel
@@ -1,5 +1,5 @@
-(ns phel-web-skeleton-tests\module\example-test
- (:require web-skeleton\module\greet :as g)
+(ns lezer-tests\module\example-test
+ (:require lezer\module\greet :as g)
(:require phel\test :refer [deftest is]))
(deftest test-greet