create-berna-stencil 1.0.6 → 1.0.8
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/_tools/res/templates.json +2 -2
- package/bin/create.js +2 -1
- package/package.json +1 -1
- package/src/data/site.json +53 -53
- package/src/js/pages/404.js +2 -2
- package/src/js/pages/anotherPage.js +2 -2
- package/src/js/pages/homepage.js +2 -2
- package/src/scss/pages/404.scss +1 -0
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"import { showNotification } from '../modules/notification.js';",
|
|
41
41
|
"",
|
|
42
42
|
"// Uncomment to enable optional modules (call inside DOMContentLoaded)",
|
|
43
|
-
"// import { initTextAreaAutoExpand } from '../modules/textAreaAutoExpand.js';",
|
|
44
|
-
"// import { initNormalizePhoneNumber } from '../modules/normalizePhoneNumber.js';",
|
|
43
|
+
"// import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';",
|
|
44
|
+
"// import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';",
|
|
45
45
|
"",
|
|
46
46
|
"//==========================",
|
|
47
47
|
"// \"{{pageName}}\" PAGE CUSTOM JAVASCRIPT",
|
package/bin/create.js
CHANGED
|
@@ -17,7 +17,7 @@ const COPY_TARGETS = [
|
|
|
17
17
|
|
|
18
18
|
const PROJECT_PACKAGE = {
|
|
19
19
|
name: path.basename(targetDir),
|
|
20
|
-
version: '1.0.
|
|
20
|
+
version: '1.0.8',
|
|
21
21
|
private: true,
|
|
22
22
|
scripts: {
|
|
23
23
|
'build:css': 'sass src/scss:out/css --no-source-map --style=compressed --quiet',
|
|
@@ -94,3 +94,4 @@ if (process.argv[2]) {
|
|
|
94
94
|
}
|
|
95
95
|
log('npm install');
|
|
96
96
|
log('npm run serve\n');
|
|
97
|
+
log("\nDon't forget to check the documentation at https://bernastencil.com");
|
package/package.json
CHANGED
package/src/data/site.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"site_name": "Site name",
|
|
3
|
-
"title": "Site title",
|
|
4
|
-
"description": "Site description",
|
|
5
|
-
"keywords": "keyword1, keyword2, keyword3",
|
|
6
|
-
"domain": "yoursite.com",
|
|
7
|
-
"url": "https://yoursite.com",
|
|
8
|
-
"lang": "en",
|
|
9
|
-
"author": "Name and surname",
|
|
10
|
-
"data_bs_theme": "dark",
|
|
11
|
-
"favicon": "/assets/brand/favicon.svg",
|
|
12
|
-
"logo": "/assets/brand/logo.svg",
|
|
13
|
-
"copyright": {
|
|
14
|
-
"year": "2026",
|
|
15
|
-
"text": "Copyright text"
|
|
16
|
-
},
|
|
17
|
-
"legal": {
|
|
18
|
-
"privacy": "",
|
|
19
|
-
"cookie": "",
|
|
20
|
-
"cookieControls": "",
|
|
21
|
-
"terms": ""
|
|
22
|
-
},
|
|
23
|
-
"pages": {
|
|
24
|
-
"404": {
|
|
25
|
-
"seo": {
|
|
26
|
-
"title": "404 - Not found"
|
|
27
|
-
},
|
|
28
|
-
"cdn": {
|
|
29
|
-
"css": [],
|
|
30
|
-
"js": []
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"homepage": {
|
|
34
|
-
"seo": {
|
|
35
|
-
"title": "Homepage",
|
|
36
|
-
"description": "Description"
|
|
37
|
-
},
|
|
38
|
-
"cdn": {
|
|
39
|
-
"css": [],
|
|
40
|
-
"js": []
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"anotherPage": {
|
|
44
|
-
"seo": {
|
|
45
|
-
"title": "Another Page",
|
|
46
|
-
"description": "description"
|
|
47
|
-
},
|
|
48
|
-
"cdn": {
|
|
49
|
-
"css": [],
|
|
50
|
-
"js": []
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"site_name": "Site name",
|
|
3
|
+
"title": "Site title",
|
|
4
|
+
"description": "Site description",
|
|
5
|
+
"keywords": "keyword1, keyword2, keyword3",
|
|
6
|
+
"domain": "yoursite.com",
|
|
7
|
+
"url": "https://yoursite.com",
|
|
8
|
+
"lang": "en",
|
|
9
|
+
"author": "Name and surname",
|
|
10
|
+
"data_bs_theme": "dark",
|
|
11
|
+
"favicon": "/assets/brand/favicon.svg",
|
|
12
|
+
"logo": "/assets/brand/logo.svg",
|
|
13
|
+
"copyright": {
|
|
14
|
+
"year": "2026",
|
|
15
|
+
"text": "Copyright text"
|
|
16
|
+
},
|
|
17
|
+
"legal": {
|
|
18
|
+
"privacy": "",
|
|
19
|
+
"cookie": "",
|
|
20
|
+
"cookieControls": "",
|
|
21
|
+
"terms": ""
|
|
22
|
+
},
|
|
23
|
+
"pages": {
|
|
24
|
+
"404": {
|
|
25
|
+
"seo": {
|
|
26
|
+
"title": "404 - Not found"
|
|
27
|
+
},
|
|
28
|
+
"cdn": {
|
|
29
|
+
"css": [],
|
|
30
|
+
"js": []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"homepage": {
|
|
34
|
+
"seo": {
|
|
35
|
+
"title": "Homepage",
|
|
36
|
+
"description": "Description"
|
|
37
|
+
},
|
|
38
|
+
"cdn": {
|
|
39
|
+
"css": [],
|
|
40
|
+
"js": []
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"anotherPage": {
|
|
44
|
+
"seo": {
|
|
45
|
+
"title": "Another Page",
|
|
46
|
+
"description": "description"
|
|
47
|
+
},
|
|
48
|
+
"cdn": {
|
|
49
|
+
"css": [],
|
|
50
|
+
"js": []
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
54
|
}
|
package/src/js/pages/404.js
CHANGED
|
@@ -9,8 +9,8 @@ import { initLangSwitcher } from '../modules/langSwitcher.js';
|
|
|
9
9
|
import { showNotification } from '../modules/notification.js';
|
|
10
10
|
|
|
11
11
|
// Uncomment to enable optional modules (call inside DOMContentLoaded)
|
|
12
|
-
// import { initTextAreaAutoExpand } from '../modules/textAreaAutoExpand.js';
|
|
13
|
-
// import { initNormalizePhoneNumber } from '../modules/normalizePhoneNumber.js';
|
|
12
|
+
// import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';
|
|
13
|
+
// import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';
|
|
14
14
|
|
|
15
15
|
//==========================
|
|
16
16
|
// "404" PAGE CUSTOM JAVASCRIPT
|
|
@@ -9,8 +9,8 @@ import { initLangSwitcher } from '../modules/langSwitcher.js';
|
|
|
9
9
|
import { showNotification } from '../modules/notification.js';
|
|
10
10
|
|
|
11
11
|
// Uncomment to enable optional modules (call inside DOMContentLoaded)
|
|
12
|
-
// import { initTextAreaAutoExpand } from '../modules/textAreaAutoExpand.js';
|
|
13
|
-
// import { initNormalizePhoneNumber } from '../modules/normalizePhoneNumber.js';
|
|
12
|
+
// import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';
|
|
13
|
+
// import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';
|
|
14
14
|
|
|
15
15
|
//==========================
|
|
16
16
|
// "another-page" PAGE CUSTOM JAVASCRIPT
|
package/src/js/pages/homepage.js
CHANGED
|
@@ -10,8 +10,8 @@ import { initLangSwitcher } from '../modules/langSwitcher.js';
|
|
|
10
10
|
import { showNotification } from '../modules/notification.js';
|
|
11
11
|
|
|
12
12
|
// Uncomment to enable optional modules (call inside DOMContentLoaded)
|
|
13
|
-
// import { initTextAreaAutoExpand } from '../modules/textAreaAutoExpand.js';
|
|
14
|
-
// import { initNormalizePhoneNumber } from '../modules/normalizePhoneNumber.js';
|
|
13
|
+
// import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';
|
|
14
|
+
// import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';
|
|
15
15
|
|
|
16
16
|
//==========================
|
|
17
17
|
// "homepage" PAGE CUSTOM JAVASCRIPT
|