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 +1 -1
- package/bin/create.js +2 -1
- package/nginx.conf +45 -0
- package/package.json +65 -64
- package/src/frontend/llms.njk +1 -1
- package/src/frontend/scss/modules/_buttons.scss +1 -0
- package/src/frontend/scss/modules/_header.scss +3 -0
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
|
-

|
|
16
16
|

|
|
17
17
|

|
|
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.
|
|
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.
|
|
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
|
-
".
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@11ty/eleventy
|
|
37
|
-
"
|
|
38
|
-
"bootstrap
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"build:
|
|
54
|
-
"build:
|
|
55
|
-
"build
|
|
56
|
-
"
|
|
57
|
-
"serve:
|
|
58
|
-
"serve:
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
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
|
}
|
package/src/frontend/llms.njk
CHANGED