create-berna-stencil 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Building a website from scratch involves a lot of moving parts: templating engin
12
12
  - 📁 **Scalable structure** — a clean, opinionated project layout that grows with your needs
13
13
  - 🌍 **Open source** — free to use, free to modify, free to share
14
14
 
15
- ![Version](https://img.shields.io/badge/version-2.4.1-blue)
15
+ ![Version](https://img.shields.io/badge/version-2.4.3-blue)
16
16
  ![License](https://img.shields.io/badge/license-Apache--2.0-blue)
17
17
  ![Eleventy](https://img.shields.io/badge/11ty-v3.1.2-black)
18
18
 
package/bin/create.js CHANGED
@@ -47,6 +47,7 @@ const MANDATORY_COPY = [
47
47
  '_tools',
48
48
  '.eleventy.js',
49
49
  '.eleventyignore',
50
+ 'nginx.conf',
50
51
  'src/backend',
51
52
  'src/frontend',
52
53
  ];
@@ -120,7 +121,7 @@ src/backend/config.php
120
121
 
121
122
  const PROJECT_PACKAGE = {
122
123
  name: path.basename(targetDir),
123
- version: '2.4.1',
124
+ version: '2.4.3',
124
125
  private: true,
125
126
  outputDir: 'out',
126
127
  "scripts": {
package/nginx.conf ADDED
@@ -0,0 +1,45 @@
1
+ server {
2
+ listen 80;
3
+ server_name _;
4
+ return 301 https://$host$request_uri;
5
+ }
6
+
7
+ server {
8
+ listen 443 ssl;
9
+ server_name _;
10
+
11
+ # ssl_certificate /path/to/cert.pem;
12
+ # ssl_certificate_key /path/to/key.pem;
13
+
14
+ root /var/www/html/out;
15
+ index index.html;
16
+
17
+ autoindex off;
18
+
19
+ error_page 403 404 /404.html;
20
+ location = /404.html {
21
+ internal;
22
+ }
23
+
24
+ location ^~ /backend/ {
25
+ return 404;
26
+ }
27
+
28
+ location ~* ^/(web\.config|llms\.txt|robots\.txt|sitemap\.xml)$ {
29
+ return 404;
30
+ }
31
+
32
+ location ~ /\. {
33
+ return 404;
34
+ }
35
+
36
+ location ^~ /api/ {
37
+ fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
38
+ fastcgi_param SCRIPT_FILENAME $document_root/backend/_core/index.php;
39
+ include fastcgi_params;
40
+ }
41
+
42
+ location / {
43
+ try_files $uri $uri/ /404.html;
44
+ }
45
+ }
package/package.json CHANGED
@@ -1,65 +1,66 @@
1
- {
2
- "name": "create-berna-stencil",
3
- "version": "2.4.1",
4
- "description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
5
- "keywords": [],
6
- "author": "Michele Garofalo",
7
- "license": "Apache-2.0",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/rhaastrake/berna-stencil"
11
- },
12
- "homepage": "https://github.com/rhaastrake/berna-stencil#readme",
13
- "bugs": {
14
- "url": "https://github.com/rhaastrake/berna-stencil/issues"
15
- },
16
- "bin": {
17
- "create-berna-stencil": "bin/create.js"
18
- },
19
- "files": [
20
- "bin/",
21
- "docs/",
22
- "src/",
23
- "_tools/",
24
- ".eleventy.js",
25
- ".eleventyignore",
26
- ".gitignore",
27
- "tsconfig.json",
28
- "LICENSE",
29
- "NOTICE"
30
- ],
31
- "engines": {
32
- "node": ">=18.0.0"
33
- },
34
- "dependencies": {
35
- "@11ty/eleventy": "^3.1.2",
36
- "@11ty/eleventy-img": "^6.0.4",
37
- "bootstrap": "^5.3.8",
38
- "bootstrap-icons": "^1.13.1",
39
- "bulma": "^1.0.4",
40
- "foundation-sites": "^6.9.0",
41
- "github-markdown-css": "^5.9.0",
42
- "glob": "^13.0.6",
43
- "markdown-it": "^14.2.0",
44
- "uikit": "^3.25.13"
45
- },
46
- "devDependencies": {
47
- "concurrently": "^9.2.1",
48
- "esbuild": "^0.27.3",
49
- "sass": "^1.77.0"
50
- },
51
- "scripts": {
52
- "build:css": "sass src/frontend/scss:out/css --no-source-map --style=compressed --quiet",
53
- "build:js": "esbuild \"src/frontend/ts/pages/*.ts\" --bundle --outdir=out/js/pages --minify",
54
- "build:11ty": "eleventy",
55
- "build": "npm run clean && npm run build:css && npm run build:js && npm run build:11ty",
56
- "serve:css": "sass --watch src/frontend/scss:out/css --no-source-map --quiet",
57
- "serve:js": "esbuild \"src/frontend/ts/pages/*.ts\" --bundle --outdir=out/js/pages --watch",
58
- "serve:11ty": "eleventy --serve --quiet",
59
- "clean": "node _tools/cleanOutput.js",
60
- "serve": "npm run clean && concurrently \"npm run serve:11ty\" \"npm run serve:css\" \"npm run serve:js\"",
61
- "assistant": "node _tools/assistant.js",
62
- "postinstall": "cd src/backend/_core && composer install --quiet"
63
- },
64
- "outputDir": "out"
1
+ {
2
+ "name": "create-berna-stencil",
3
+ "version": "2.4.3",
4
+ "description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
5
+ "keywords": [],
6
+ "author": "Michele Garofalo",
7
+ "license": "Apache-2.0",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/rhaastrake/berna-stencil"
11
+ },
12
+ "homepage": "https://github.com/rhaastrake/berna-stencil#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/rhaastrake/berna-stencil/issues"
15
+ },
16
+ "bin": {
17
+ "create-berna-stencil": "bin/create.js"
18
+ },
19
+ "files": [
20
+ "bin/",
21
+ "docs/",
22
+ "src/",
23
+ "_tools/",
24
+ ".eleventy.js",
25
+ ".eleventyignore",
26
+ "nginx.conf",
27
+ ".gitignore",
28
+ "tsconfig.json",
29
+ "LICENSE",
30
+ "NOTICE"
31
+ ],
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ },
35
+ "dependencies": {
36
+ "@11ty/eleventy": "^3.1.2",
37
+ "@11ty/eleventy-img": "^6.0.4",
38
+ "bootstrap": "^5.3.8",
39
+ "bootstrap-icons": "^1.13.1",
40
+ "bulma": "^1.0.4",
41
+ "foundation-sites": "^6.9.0",
42
+ "github-markdown-css": "^5.9.0",
43
+ "glob": "^13.0.6",
44
+ "markdown-it": "^14.2.0",
45
+ "uikit": "^3.25.13"
46
+ },
47
+ "devDependencies": {
48
+ "concurrently": "^9.2.1",
49
+ "esbuild": "^0.27.3",
50
+ "sass": "^1.77.0"
51
+ },
52
+ "scripts": {
53
+ "build:css": "sass src/frontend/scss:out/css --no-source-map --style=compressed --quiet",
54
+ "build:js": "esbuild \"src/frontend/ts/pages/*.ts\" --bundle --outdir=out/js/pages --minify",
55
+ "build:11ty": "eleventy",
56
+ "build": "npm run clean && npm run build:css && npm run build:js && npm run build:11ty",
57
+ "serve:css": "sass --watch src/frontend/scss:out/css --no-source-map --quiet",
58
+ "serve:js": "esbuild \"src/frontend/ts/pages/*.ts\" --bundle --outdir=out/js/pages --watch",
59
+ "serve:11ty": "eleventy --serve --quiet",
60
+ "clean": "node _tools/cleanOutput.js",
61
+ "serve": "npm run clean && concurrently \"npm run serve:11ty\" \"npm run serve:css\" \"npm run serve:js\"",
62
+ "assistant": "node _tools/assistant.js",
63
+ "postinstall": "cd src/backend/_core && composer install --quiet"
64
+ },
65
+ "outputDir": "out"
65
66
  }
@@ -15,4 +15,4 @@ Built by {{ site.author }} — {{ site.url }}
15
15
  ## Notes
16
16
 
17
17
  - Language: {{ site.lang }}
18
- - All content may be used for AI inde xing unless otherwise stated
18
+ - All content may be used for AI indexing unless otherwise stated
@@ -10,6 +10,7 @@
10
10
  border-radius: 12px;
11
11
  padding: 8px 20px;
12
12
  transition: background 0.2s, color 0.2s;
13
+ background-color: #2E7253;
13
14
 
14
15
  &:hover {
15
16
  background: #42b883;
@@ -8,6 +8,9 @@
8
8
  header {
9
9
  height: root.$header-height;
10
10
  width: 100%;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
11
14
  padding: root.$header-padding-y root.$header-padding-x;
12
15
  background-color: root.$primary;
13
16
  background-color: #2e7253;