@d-zero/scaffold 5.0.0-alpha.15 → 5.0.0-alpha.17
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/.husky/pre-commit +1 -6
- package/CHANGELOG.md +10 -0
- package/__assets/_libs/mixin/meta.pug +2 -2
- package/__assets/htdocs/__tmpl/index.pug +0 -6
- package/__assets/htdocs/sub-folder.test/css/style.scss +5 -7
- package/__assets/htdocs/sub-folder.test/js/script.ts +2 -0
- package/eleventy.config.mjs +23 -0
- package/package.json +10 -10
- package/__assets/htdocs/sub-folder.test/js/script.js +0 -9
- package/eleventy.config.cjs +0 -28
package/.husky/pre-commit
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.17](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.16...v5.0.0-alpha.17) (2024-10-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @d-zero/scaffold
|
|
9
|
+
|
|
10
|
+
# [5.0.0-alpha.16](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.15...v5.0.0-alpha.16) (2024-10-09)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **scaffold:** add `--fix` option to lint commands ([78208e3](https://github.com/d-zero-dev/frontend-env/commit/78208e3bb482391c5e3fea2eb44c2447fb8f1a0f))
|
|
15
|
+
|
|
6
16
|
# [5.0.0-alpha.15](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.14...v5.0.0-alpha.15) (2024-10-01)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @d-zero/scaffold
|
|
@@ -17,5 +17,5 @@ mixin meta(title)
|
|
|
17
17
|
meta(name="twitter:image" content="__OGP用画像__")
|
|
18
18
|
link(rel="shortcut icon" href="/favicon.png")
|
|
19
19
|
link(rel="apple-touch-icon" href="/img/apple-touch-icon.png")
|
|
20
|
-
link(href="/css/style.
|
|
21
|
-
script(src="/js/script.
|
|
20
|
+
link(href="/css/style.css" rel="stylesheet")
|
|
21
|
+
script(src="/js/script.js" type="module")
|
|
@@ -11,12 +11,6 @@ html(lang="ja")
|
|
|
11
11
|
.list-group-item a {
|
|
12
12
|
display: block;
|
|
13
13
|
}
|
|
14
|
-
script(type="module").
|
|
15
|
-
document.querySelectorAll("a").forEach((a) => {
|
|
16
|
-
if (a.hostname === "localhost") {
|
|
17
|
-
a.pathname = a.pathname.replace(/\.html$/, "/");
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
14
|
body
|
|
21
15
|
.c-content-main
|
|
22
16
|
main.container
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@use '../../__assets/_libs/style/general/body';
|
|
7
|
-
@use '../../__assets/_libs/style/general/button';
|
|
1
|
+
@import 'destyle.css' layer(reset);
|
|
2
|
+
@import '@/style/base/_root.scss';
|
|
3
|
+
@import '@/style/general/_all.scss';
|
|
4
|
+
@import '@/style/general/_body.scss';
|
|
5
|
+
@import '@/style/general/_button.scss';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
|
|
3
|
+
import eleventy from '@d-zero/builder/11ty';
|
|
4
|
+
|
|
5
|
+
export default function (eleventyConfig) {
|
|
6
|
+
eleventyConfig.addGlobalData('alias', {
|
|
7
|
+
'@': path.resolve(import.meta.dirname, '__assets', '_libs'),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// eleventyConfig.addGlobalData('outputCssDir', 'css');
|
|
11
|
+
// eleventyConfig.addGlobalData('outputJsDir', 'js');
|
|
12
|
+
// eleventyConfig.addGlobalData('outputImgDir', 'img');
|
|
13
|
+
// eleventyConfig.addGlobalData('prettier', false);
|
|
14
|
+
/**
|
|
15
|
+
* @see https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
|
|
16
|
+
*/
|
|
17
|
+
// eleventyConfig.addGlobalData('minifier', { minifyJS: false });
|
|
18
|
+
// eleventyConfig.addGlobalData('lineBreak', '\r\n');
|
|
19
|
+
// eleventyConfig.addGlobalData('charset', 'shift_jis');
|
|
20
|
+
// eleventyConfig.addGlobalData('pathFormat', 'directory');
|
|
21
|
+
|
|
22
|
+
return eleventy(eleventyConfig);
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/scaffold",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.17",
|
|
4
4
|
"description": "Frontend scaffold files of D-ZERO Co., Ltd.",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/frontend-env.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "package.json",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"dev": "
|
|
15
|
+
"dev": "eleventy --serve --watch",
|
|
16
16
|
"d": "yarn dev",
|
|
17
17
|
"release": "cross-env NODE_ENV=production build",
|
|
18
18
|
"lint": "run-s lint:*",
|
|
19
19
|
"lint:html": "markuplint \"./__assets/**/*.{pug,html}\"",
|
|
20
20
|
"lint:pug": "pug-lint ./__assets/htdocs/**/*.pug -r console; pug-lint ./__assets/_libs/**/*.pug -r console;",
|
|
21
|
-
"lint:css": "
|
|
22
|
-
"lint:js": "
|
|
21
|
+
"lint:css": "stylelint \"./__assets/**/*.scss\" --fix",
|
|
22
|
+
"lint:js": "eslint \"./__assets/**/*.{js,mjs,cjs,jsx,ts,tsx}\" --fix",
|
|
23
23
|
"lint:format": "prettier --write \"{*,./__assets/**/*}.{js,jsx,ts,tsx,scss,pug,html,json,yaml,*rc}\"",
|
|
24
24
|
"lint:spell": "cspell --no-progress --show-suggestions \"**\"",
|
|
25
25
|
"prepare": "husky",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"last 2 ios_saf version"
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@d-zero/builder": "5.0.0-alpha.
|
|
38
|
-
"@d-zero/linters": "5.0.0-alpha.
|
|
39
|
-
"@d-zero/postcss-config": "5.0.0-alpha.
|
|
37
|
+
"@d-zero/builder": "5.0.0-alpha.17",
|
|
38
|
+
"@d-zero/linters": "5.0.0-alpha.45",
|
|
39
|
+
"@d-zero/postcss-config": "5.0.0-alpha.17",
|
|
40
40
|
"@d-zero/tsconfig": "0.3.2",
|
|
41
|
-
"@types/node": "22.7.
|
|
41
|
+
"@types/node": "22.7.5",
|
|
42
42
|
"cross-env": "7.0.3",
|
|
43
43
|
"husky": "9.1.6",
|
|
44
44
|
"npm-run-all2": "6.2.3",
|
|
45
45
|
"sass": "1.79.4",
|
|
46
|
-
"typescript": "5.6.
|
|
46
|
+
"typescript": "5.6.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"destyle.css": "4.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"node": "22.9.0",
|
|
54
54
|
"yarn": "1.22.22"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8a731a43ecc817951671958444da77f97d0a0971"
|
|
57
57
|
}
|
package/eleventy.config.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
|
|
3
|
-
const eleventy = require('@d-zero/builder/11ty');
|
|
4
|
-
|
|
5
|
-
module.exports = function (eleventyConfig) {
|
|
6
|
-
// eleventyConfig.addGlobalData('publicDir', '@static');
|
|
7
|
-
// eleventyConfig.addGlobalData('outputCssDir', 'css');
|
|
8
|
-
// eleventyConfig.addGlobalData('outputJsDir', 'js');
|
|
9
|
-
// eleventyConfig.addGlobalData('outputImgDir', 'img');
|
|
10
|
-
|
|
11
|
-
eleventyConfig.addGlobalData('alias', {
|
|
12
|
-
'@': path.resolve(__dirname, '__assets', '_libs'),
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
eleventyConfig.setPugOptions({
|
|
16
|
-
basedir: path.resolve(__dirname, '__assets', '_libs'),
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
if (process.env.NODE_ENV === 'production') {
|
|
20
|
-
eleventyConfig.addGlobalData('prettier', true);
|
|
21
|
-
// eleventyConfig.addGlobalData('minifier', { minifyJS: false });
|
|
22
|
-
// eleventyConfig.addGlobalData('lineBreak', '\r\n');
|
|
23
|
-
// eleventyConfig.addGlobalData('charset', 'shift_jis');
|
|
24
|
-
// eleventyConfig.addGlobalData('pathFormat', 'preserve');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return eleventy(eleventyConfig);
|
|
28
|
-
};
|