@d-zero/scaffold 5.0.0-alpha.14 → 5.0.0-alpha.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/.eslintrc.cjs CHANGED
@@ -1,4 +1,3 @@
1
1
  module.exports = {
2
2
  extends: ['@d-zero/eslint-config'],
3
- ignorePatterns: ['@static'],
4
3
  };
package/.stylelintrc CHANGED
@@ -1,20 +1,3 @@
1
1
  {
2
- "extends": ["@d-zero/stylelint-config"],
3
- "overrides": [
4
- {
5
- "files": ["_c-*.scss"],
6
- "rules": {
7
- "@d-zero/component": {
8
- "allowMultipleSelectors": true
9
- }
10
- }
11
- },
12
- {
13
- "files": ["_c-content-main.scss"],
14
- "rules": {
15
- "selector-class-pattern": null,
16
- "selector-nested-pattern": "^(?!\\.c-).*"
17
- }
18
- }
19
- ]
2
+ "extends": ["@d-zero/stylelint-config"]
20
3
  }
package/CHANGELOG.md CHANGED
@@ -3,75 +3,6 @@
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.14](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.13...v5.0.0-alpha.14) (2024-07-31)
7
-
8
- ### Features
9
-
10
- - **builder:** css,js,画像ファイルのアウトプット先ディレクトリを指定できるようにする ([bd6028b](https://github.com/d-zero-dev/frontend-env/commit/bd6028b501c872e5667878b754f48938db39e130))
11
-
12
- # [5.0.0-alpha.13](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.12...v5.0.0-alpha.13) (2024-07-22)
13
-
14
- **Note:** Version bump only for package @d-zero/scaffold
15
-
16
- # [5.0.0-alpha.12](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.11...v5.0.0-alpha.12) (2024-07-05)
17
-
18
- ### Bug Fixes
19
-
20
- - **scaffold:** fix ignore path within lint-staged ([c62c532](https://github.com/d-zero-dev/frontend-env/commit/c62c5327bd7f142960950fbe4300905301d34a6f))
21
-
22
- # [5.0.0-alpha.11](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.10...v5.0.0-alpha.11) (2024-07-05)
23
-
24
- ### Bug Fixes
25
-
26
- - **repo:** fix deprecated husky command on prepare script ([d72833b](https://github.com/d-zero-dev/frontend-env/commit/d72833bcc90cdf3abb649a5e865551fadccf72ee))
27
- - **scaffold:** fix to ignore `htdocs` on lint staged process ([8292cc9](https://github.com/d-zero-dev/frontend-env/commit/8292cc90098076ad613c33162610e8536bd89ff7))
28
-
29
- ### Features
30
-
31
- - **scaffold:** 301_form_confirmテンプレートに「入力画面に戻る」ボタンを追加 ([7aa3614](https://github.com/d-zero-dev/frontend-env/commit/7aa3614ffd8f1e7cebe64c97428c0d830f9abb70))
32
- - **scaffold:** add `@d-zero/component` stylelint rule ([7c42f10](https://github.com/d-zero-dev/frontend-env/commit/7c42f10fc01edf42082844c5334447025cc81bda))
33
- - **scaffold:** huskyの追加 ([7f485dc](https://github.com/d-zero-dev/frontend-env/commit/7f485dcb28cfaf5ff78eec9e93bcd0a56ff52b95))
34
-
35
- # [5.0.0-alpha.10](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.9...v5.0.0-alpha.10) (2024-06-11)
36
-
37
- ### Bug Fixes
38
-
39
- - **scaffold:** 生成ファイルや静的ファイルがリント対象となっていたため除外設定を追加 ([0938636](https://github.com/d-zero-dev/frontend-env/commit/0938636ec260337914eaa4d0ab98aead709164fc))
40
- - **scaffold:** 文字選択の背景色が表示できない設定になっていたので削除 ([5b7a559](https://github.com/d-zero-dev/frontend-env/commit/5b7a559adb103a868901cfe7ab8dc7ef2f5d5e12))
41
-
42
- ### Features
43
-
44
- - **scaffold:** リセットを`destyle.css`に変更 ([10f05c7](https://github.com/d-zero-dev/frontend-env/commit/10f05c79f54b41114c3d26194ad1ba84b15fd61d))
45
-
46
- # [5.0.0-alpha.9](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.8...v5.0.0-alpha.9) (2024-06-10)
47
-
48
- ### Features
49
-
50
- - **builder:** `publicDir`を`eleventyConfig.addGlobalData`に設定できるように追加 ([26e2740](https://github.com/d-zero-dev/frontend-env/commit/26e2740c8df32cc60cb4e407fe4cfc20919a7e5a))
51
- - **scaffold:** `[@static](https://github.com/static)`フォルダを空フォルダとして予め準備 ([7fe485b](https://github.com/d-zero-dev/frontend-env/commit/7fe485b2ef4d5a13e23e494c1d2c5422ef3fdc3b))
52
-
53
- # [5.0.0-alpha.8](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.7...v5.0.0-alpha.8) (2024-05-23)
54
-
55
- **Note:** Version bump only for package @d-zero/scaffold
56
-
57
- # [5.0.0-alpha.7](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.6...v5.0.0-alpha.7) (2024-05-14)
58
-
59
- **Note:** Version bump only for package @d-zero/scaffold
60
-
61
- # [5.0.0-alpha.6](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.5...v5.0.0-alpha.6) (2024-05-14)
62
-
63
- **Note:** Version bump only for package @d-zero/scaffold
64
-
65
- # [5.0.0-alpha.5](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.4...v5.0.0-alpha.5) (2024-05-14)
66
-
67
- ### Bug Fixes
68
-
69
- - **scaffold:** fix published files ([f35ae2b](https://github.com/d-zero-dev/frontend-env/commit/f35ae2b9c46f14efda206acf518d10bd3b4a582f))
70
-
71
- # [5.0.0-alpha.4](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.2...v5.0.0-alpha.4) (2024-05-14)
72
-
73
- **Note:** Version bump only for package @d-zero/scaffold
74
-
75
6
  # [5.0.0-alpha.2](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.1...v5.0.0-alpha.2) (2024-05-14)
76
7
 
77
8
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  @use '../style/theme' as *;
2
2
 
3
- // 🃏 このファイルのStylelintルールはoverridesによって特別に変更されています
4
-
3
+ /* stylelint-disable selector-class-pattern, selector-nested-pattern -- content-main特殊ルール */
4
+ //
5
5
  // メインコンテンツ(content-mainコンポーネント)の内容はCMSなどで管理されるHTMLを含んだり、
6
6
  // ページ独自のスタイルを扱うことが多いので例外的に専用のルールを設ける。
7
7
  //
@@ -267,3 +267,4 @@
267
267
  }
268
268
  }
269
269
  }
270
+ /* stylelint-enable selector-class-pattern, selector-nested-pattern */
@@ -7,5 +7,9 @@
7
7
  &::after {
8
8
  box-sizing: border-box;
9
9
  }
10
+
11
+ &::selection {
12
+ background-color: initial;
13
+ }
10
14
  }
11
15
  /* stylelint-enable selector-max-universal */
package/cspell.json CHANGED
@@ -1,4 +1,3 @@
1
1
  {
2
- "import": ["@d-zero/cspell-config"],
3
- "ignorePaths": ["./htdocs", "**/@static/**/*"]
2
+ "import": ["@d-zero/cspell-config"]
4
3
  }
@@ -3,19 +3,10 @@ const path = require('node:path');
3
3
  const eleventy = require('@d-zero/builder/11ty');
4
4
 
5
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
6
  eleventyConfig.addGlobalData('alias', {
12
7
  '@': path.resolve(__dirname, '__assets', '_libs'),
13
8
  });
14
9
 
15
- eleventyConfig.setPugOptions({
16
- basedir: path.resolve(__dirname, '__assets', '_libs'),
17
- });
18
-
19
10
  if (process.env.NODE_ENV === 'production') {
20
11
  eleventyConfig.addGlobalData('prettier', true);
21
12
  // eleventyConfig.addGlobalData('minifier', { minifyJS: false });
@@ -1,12 +1,3 @@
1
- import path from 'node:path';
2
-
3
1
  // eslint-disable-next-line import/no-extraneous-dependencies
4
2
  import lintStagedConfigGenerator from '@d-zero/lint-staged-config';
5
- export default lintStagedConfigGenerator({
6
- ignore: [
7
- path.resolve(process.cwd(), 'htdocs', '**', '*'),
8
- {
9
- textlint: 'CHANGELOG.md',
10
- },
11
- ],
12
- });
3
+ export default lintStagedConfigGenerator();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/scaffold",
3
- "version": "5.0.0-alpha.14",
3
+ "version": "5.0.0-alpha.3",
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.",
@@ -11,18 +11,27 @@
11
11
  },
12
12
  "type": "module",
13
13
  "main": "package.json",
14
+ "files": [
15
+ "*",
16
+ "**/*",
17
+ ".gitignore",
18
+ "!htdocs",
19
+ "!node_modules",
20
+ "!.11ty-vite",
21
+ "!.serve",
22
+ "!.DS_Store"
23
+ ],
14
24
  "scripts": {
15
25
  "dev": "cross-env NODE_ENV=serve build",
16
26
  "d": "yarn dev",
17
27
  "release": "cross-env NODE_ENV=production build",
18
28
  "lint": "run-s lint:*",
19
29
  "lint:html": "markuplint \"./__assets/**/*.{pug,html}\"",
20
- "lint:pug": "pug-lint ./__assets/htdocs/**/*.pug -r console; pug-lint ./__assets/_libs/**/*.pug -r console;",
30
+ "lint:html:pug": "pug-lint ./__assets/htdocs/**/*.pug -r console; pug-lint ./__assets/_libs/**/*.pug -r console;",
21
31
  "lint:css": " stylelint \"./__assets/**/*.scss\"",
22
32
  "lint:js": " eslint \"./__assets/**/*.{js,mjs,cjs,jsx,ts,tsx}\"",
23
- "lint:format": "prettier --write \"{*,./__assets/**/*}.{js,jsx,ts,tsx,scss,pug,html,json,yaml,*rc}\"",
33
+ "lint:format": "prettier --write \"./__assets/**/*.{js,jsx,ts,tsx,scss,pug,html}\"",
24
34
  "lint:spell": "cspell --no-progress --show-suggestions \"**\"",
25
- "prepare": "husky",
26
35
  "up": "yarn upgrade-interactive --latest"
27
36
  },
28
37
  "browserslist": [
@@ -34,24 +43,22 @@
34
43
  "last 2 ios_saf version"
35
44
  ],
36
45
  "devDependencies": {
37
- "@d-zero/builder": "5.0.0-alpha.14",
38
- "@d-zero/linters": "5.0.0-alpha.41",
39
- "@d-zero/postcss-config": "5.0.0-alpha.14",
40
- "@d-zero/tsconfig": "0.3.1",
41
- "@types/node": "20.14.13",
46
+ "@d-zero/builder": "5.0.0-alpha.2",
47
+ "@d-zero/linters": "5.0.0-alpha.25",
48
+ "@d-zero/postcss-config": "5.0.0-alpha.2",
49
+ "@d-zero/tsconfig": "0.2.0",
50
+ "@types/node": "20.12.12",
42
51
  "cross-env": "7.0.3",
43
- "husky": "9.1.4",
44
- "npm-run-all2": "6.2.2",
45
- "sass": "1.77.8",
46
- "typescript": "5.5.4"
52
+ "npm-run-all2": "6.1.2",
53
+ "sass": "1.77.1",
54
+ "typescript": "5.4.5"
47
55
  },
48
56
  "dependencies": {
49
- "destyle.css": "4.0.1",
50
- "tslib": "2.6.3"
57
+ "ress": "5.0.2",
58
+ "tslib": "2.6.2"
51
59
  },
52
60
  "volta": {
53
- "node": "22.5.1",
61
+ "node": "22.1.0",
54
62
  "yarn": "1.22.22"
55
- },
56
- "gitHead": "6ce96d0c6b7b409008b927e293ceddeef5b4ca85"
63
+ }
57
64
  }
package/.husky/pre-commit DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- yarn config set ignore-engines true
5
- yarn lint-staged
6
- yarn config set ignore-engines false
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- @static
package/.textlintignore DELETED
@@ -1 +0,0 @@
1
- CHANGELOG.md
@@ -1,10 +0,0 @@
1
- {
2
- "extends": ["../../.eslintrc.cjs"],
3
- "env": {
4
- "node": false,
5
- "browser": true,
6
- "jquery": true,
7
- "es6": true,
8
- "commonjs": true
9
- }
10
- }
File without changes
File without changes
@@ -1,19 +0,0 @@
1
- {
2
- "extends": ["../../../.markuplintrc"],
3
- "nodeRules": [
4
- {
5
- "selector": "link, script",
6
- "rules": {
7
- "invalid-attr": {
8
- "options": {
9
- "allowAttrs": {
10
- "⚠️": {
11
- "type": "Any"
12
- }
13
- }
14
- }
15
- }
16
- }
17
- }
18
- ]
19
- }
@@ -1,20 +0,0 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta('__サイトタイトル__')
5
- body.c-page-home
6
- .c-page-home__base
7
- .c-page-home__header
8
- - const isHome = true;
9
- include /component/_c-header.pug
10
- .c-page-home__nav-global
11
- include /component/_c-nav-global.pug
12
-
13
- .c-page-home__main
14
- main
15
- h2 メイン
16
-
17
- .c-page-home__nav-sitemap
18
- include /component/_c-nav-sitemap.pug
19
- .c-page-home__footer
20
- include /component/_c-footer.pug
@@ -1,23 +0,0 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta('__ページタイトル__ | __サイトタイトル__')
5
- body.c-page-sub
6
- .c-page-sub__base
7
- .c-page-sub__header
8
- include /component/_c-header.pug
9
- .c-page-sub__nav-global
10
- include /component/_c-nav-global.pug
11
- .c-page-sub__main
12
- main
13
- article.c-page-sub__content
14
- .c-page-sub__title-page
15
- include /component/_c-title-page.pug
16
- .c-page-sub__nav-breadcrumb
17
- include /component/_c-nav-breadcrumb.pug
18
- .c-page-sub__content-main
19
- .c-content-main !{ blocks }
20
- .c-page-sub__nav-sitemap
21
- include /component/_c-nav-sitemap.pug
22
- .c-page-sub__footer
23
- include /component/_c-footer.pug
@@ -1,40 +0,0 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta('__ページタイトル__ | __サイトタイトル__')
5
- body.c-page-sub
6
- .c-page-sub__base
7
- .c-page-sub__header
8
- include /component/_c-header.pug
9
- .c-page-sub__nav-global
10
- include /component/_c-nav-global.pug
11
-
12
- .c-page-sub__main
13
- main
14
- article.c-page-sub__content
15
- .c-page-sub__title-page
16
- include /component/_c-title-page.pug
17
- .c-page-sub__nav-breadcrumb
18
- include /component/_c-nav-breadcrumb.pug
19
- .c-page-sub__content-index
20
- .c-content-index
21
- .c-content-index__categories
22
- // ⚠️ CMS要件:
23
- // - ページがカテゴリーインデックスの場合は aria-current="page" を付加する
24
- // - カテゴリーインデックスではなく、カテゴリーに属するページでは aria-current="page" は付加しない
25
- ul
26
- li: a(href="__PATH_TO__"): span ALL
27
- li: a(href="__PATH_TO__" aria-current="page"): span カテゴリー1
28
- li: a(href="__PATH_TO__"): span カテゴリー2
29
- li: a(href="__PATH_TO__"): span カテゴリー3
30
- .c-content-index__body
31
- .c-media-list
32
- each article in data.articles
33
- include /component/_c-media.pug
34
- .c-page-sub__pagination
35
- include /component/_c-pagination.pug
36
-
37
- .c-page-sub__nav-sitemap
38
- include /component/_c-nav-sitemap.pug
39
- .c-page-sub__footer
40
- include /component/_c-footer.pug
@@ -1,40 +0,0 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta('__ページタイトル__ | __サイトタイトル__')
5
- body.c-page-sub
6
- .c-page-sub__base
7
- .c-page-sub__header
8
- include /component/_c-header.pug
9
- .c-page-sub__nav-global
10
- include /component/_c-nav-global.pug
11
-
12
- .c-page-sub__main
13
- main
14
- article.c-page-sub__content
15
- .c-page-sub__title-page
16
- include /component/_c-title-page.pug
17
- .c-page-sub__nav-breadcrumb
18
- include /component/_c-nav-breadcrumb.pug
19
- .c-page-sub__content-index
20
- .c-content-index
21
- .c-content-index__categories
22
- // ⚠️ CMS要件:
23
- // - ページがカテゴリーインデックスの場合は aria-current="page" を付加する
24
- // - カテゴリーインデックスではなく、カテゴリーに属するページでは aria-current="page" は付加しない
25
- ul
26
- li: a(href="__PATH_TO__"): span ALL
27
- li: a(href="__PATH_TO__" aria-current="page"): span カテゴリー1
28
- li: a(href="__PATH_TO__"): span カテゴリー2
29
- li: a(href="__PATH_TO__"): span カテゴリー3
30
- .c-content-index__body
31
- .c-card-list
32
- each article in data.articles
33
- include /component/_c-card.pug
34
- .c-page-sub__pagination
35
- include /component/_c-pagination.pug
36
-
37
- .c-page-sub__nav-sitemap
38
- include /component/_c-nav-sitemap.pug
39
- .c-page-sub__footer
40
- include /component/_c-footer.pug