@d-zero/scaffold 5.0.0-alpha.17 → 5.0.0-alpha.19

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/.textlintrc.js CHANGED
@@ -1,3 +1,11 @@
1
+ const config = require('@d-zero/textlint-config');
2
+
1
3
  module.exports = {
2
- ...require('@d-zero/textlint-config'),
4
+ ...config,
5
+ rules: {
6
+ ...config.rules,
7
+ prh: {
8
+ rulePaths: ['./prh.yaml'],
9
+ },
10
+ },
3
11
  };
package/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
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.19](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.18...v5.0.0-alpha.19) (2024-10-11)
7
+
8
+ ### Features
9
+
10
+ - **scaffold:** add `lint:text` command ([59ff16e](https://github.com/d-zero-dev/frontend-env/commit/59ff16eb99ccccec667ada4d030041d1c5e98c20))
11
+ - **scaffold:** add Textlint PRH setting ([635a9d2](https://github.com/d-zero-dev/frontend-env/commit/635a9d2adaca43d6dbbd6eb4865f2a7ecd115205))
12
+
13
+ # [5.0.0-alpha.18](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.17...v5.0.0-alpha.18) (2024-10-11)
14
+
15
+ ### Bug Fixes
16
+
17
+ - **scaffold:** fix `build` command ([1a12364](https://github.com/d-zero-dev/frontend-env/commit/1a12364aa593ae9074e8496730982ee47759ccea))
18
+
19
+ ### Features
20
+
21
+ - **scaffold:** add `test` command ([6df437e](https://github.com/d-zero-dev/frontend-env/commit/6df437eed5ac86947db3fea0e90557da7644fa8c))
22
+ - **scaffold:** add TS compile checker as `lint:ts` command ([a330265](https://github.com/d-zero-dev/frontend-env/commit/a330265447568acf8aef6eb1bc454b4de6061ffb))
23
+ - **scaffold:** remove `release` command ([7e1c8df](https://github.com/d-zero-dev/frontend-env/commit/7e1c8dfecf6c7705d432e48f0c3a5100adad4f6e))
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ - **scaffold:** remove `release` command
28
+
6
29
  # [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
30
 
8
31
  **Note:** Version bump only for package @d-zero/scaffold
package/cspell.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "import": ["@d-zero/cspell-config"],
3
- "ignorePaths": ["./htdocs", "**/@static/**/*"]
3
+ "ignorePaths": ["./htdocs"]
4
4
  }
@@ -3,21 +3,66 @@ import path from 'node:path';
3
3
  import eleventy from '@d-zero/builder/11ty';
4
4
 
5
5
  export default function (eleventyConfig) {
6
- eleventyConfig.addGlobalData('alias', {
7
- '@': path.resolve(import.meta.dirname, '__assets', '_libs'),
8
- });
6
+ return eleventy(eleventyConfig, {
7
+ /**
8
+ * Alias for the path to the directory containing the components.
9
+ */
10
+ alias: {
11
+ '@': path.resolve(import.meta.dirname, '__assets', '_libs'),
12
+ },
13
+
14
+ /**
15
+ * Output directory for CSS files.
16
+ */
17
+ // outputCssDir: 'css',
18
+
19
+ /**
20
+ * Output directory for JavaScript files
21
+ */
22
+ // outputJsDir: 'js',
23
+
24
+ /**
25
+ * Output directory for image files
26
+ */
27
+ // outputImgDir: 'img',
28
+
29
+ /**
30
+ * Prettier options.
31
+ *
32
+ * @see https://prettier.io/docs/en/options
33
+ */
34
+ // prettier: false,
35
+
36
+ /**
37
+ * Minifier options.
38
+ *
39
+ * @see https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
40
+ */
41
+ // minifier: { minifyJS: false },
9
42
 
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);
43
+ /**
44
+ * Line break.
45
+ */
46
+ // lineBreak: '\r\n',
47
+
48
+ /**
49
+ * Character encoding.
50
+ */
51
+ // charset: 'shift_jis',
52
+
53
+ /**
54
+ * Path format
55
+ */
56
+ // pathFormat: 'directory',
57
+
58
+ /**
59
+ * Automatically decode the content on the dev server.
60
+ */
61
+ // autoDecode: true,
62
+
63
+ /**
64
+ * Server Side Include options on the dev server.
65
+ */
66
+ // ssi: { '**/*': { encoding: 'shift_jis' } },
67
+ });
23
68
  }
@@ -4,7 +4,7 @@ import path from 'node:path';
4
4
  import lintStagedConfigGenerator from '@d-zero/lint-staged-config';
5
5
  export default lintStagedConfigGenerator({
6
6
  ignore: [
7
- path.resolve(process.cwd(), 'htdocs', '**', '*'),
7
+ path.resolve(import.meta.dirname, 'htdocs', '**', '*'),
8
8
  {
9
9
  textlint: 'CHANGELOG.md',
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/scaffold",
3
- "version": "5.0.0-alpha.17",
3
+ "version": "5.0.0-alpha.19",
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,16 +12,19 @@
12
12
  "type": "module",
13
13
  "main": "package.json",
14
14
  "scripts": {
15
+ "build": "npx @d-zero/builder",
15
16
  "dev": "eleventy --serve --watch",
16
17
  "d": "yarn dev",
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
21
  "lint:css": "stylelint \"./__assets/**/*.scss\" --fix",
22
22
  "lint:js": "eslint \"./__assets/**/*.{js,mjs,cjs,jsx,ts,tsx}\" --fix",
23
+ "lint:ts": "tsc --noEmit",
23
24
  "lint:format": "prettier --write \"{*,./__assets/**/*}.{js,jsx,ts,tsx,scss,pug,html,json,yaml,*rc}\"",
24
25
  "lint:spell": "cspell --no-progress --show-suggestions \"**\"",
26
+ "lint:text": "textlint \"./__assets/**/*.{pug,html}\"",
27
+ "test": "vitest run",
25
28
  "prepare": "husky",
26
29
  "up": "yarn upgrade-interactive --latest"
27
30
  },
@@ -34,16 +37,17 @@
34
37
  "last 2 ios_saf version"
35
38
  ],
36
39
  "devDependencies": {
37
- "@d-zero/builder": "5.0.0-alpha.17",
40
+ "@d-zero/builder": "5.0.0-alpha.19",
38
41
  "@d-zero/linters": "5.0.0-alpha.45",
39
- "@d-zero/postcss-config": "5.0.0-alpha.17",
42
+ "@d-zero/postcss-config": "5.0.0-alpha.19",
40
43
  "@d-zero/tsconfig": "0.3.2",
41
44
  "@types/node": "22.7.5",
42
45
  "cross-env": "7.0.3",
43
46
  "husky": "9.1.6",
44
47
  "npm-run-all2": "6.2.3",
45
- "sass": "1.79.4",
46
- "typescript": "5.6.3"
48
+ "sass": "1.79.5",
49
+ "typescript": "5.6.3",
50
+ "vitest": "2.1.2"
47
51
  },
48
52
  "dependencies": {
49
53
  "destyle.css": "4.0.1",
@@ -53,5 +57,5 @@
53
57
  "node": "22.9.0",
54
58
  "yarn": "1.22.22"
55
59
  },
56
- "gitHead": "8a731a43ecc817951671958444da77f97d0a0971"
60
+ "gitHead": "36a875fb612d90f03947fc382c89f5ce40f01e30"
57
61
  }
package/prh.yaml ADDED
@@ -0,0 +1,3 @@
1
+ # 表記揺れ検出
2
+ # @see https://efcl.info/2015/09/14/textlint-rule-prh/
3
+ rules:
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- @static
File without changes
File without changes