@d-zero/scaffold 5.0.0-alpha.14 → 5.0.0-alpha.16

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 CHANGED
@@ -1,6 +1 @@
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
1
+ lint-staged
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.16](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.15...v5.0.0-alpha.16) (2024-10-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **scaffold:** add `--fix` option to lint commands ([78208e3](https://github.com/d-zero-dev/frontend-env/commit/78208e3bb482391c5e3fea2eb44c2447fb8f1a0f))
11
+
12
+ # [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)
13
+
14
+ **Note:** Version bump only for package @d-zero/scaffold
15
+
6
16
  # [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
17
 
8
18
  ### Features
@@ -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.scss" rel="stylesheet")
21
- script(src="/js/script.ts" type="module")
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
- @charset 'utf-8';
2
-
3
- @use '../../__assets/_libs/style/base/reset';
4
- @use '../../__assets/_libs/style/base/root';
5
- @use '../../__assets/_libs/style/general/all';
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,2 @@
1
+ // eslint-disable-next-line no-console
2
+ console.log('このスクリプトは、サブフォルダのテスト用です。');
@@ -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.14",
3
+ "version": "5.0.0-alpha.16",
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": "cross-env NODE_ENV=serve build",
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": " stylelint \"./__assets/**/*.scss\"",
22
- "lint:js": " eslint \"./__assets/**/*.{js,mjs,cjs,jsx,ts,tsx}\"",
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,24 +34,24 @@
34
34
  "last 2 ios_saf version"
35
35
  ],
36
36
  "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",
37
+ "@d-zero/builder": "5.0.0-alpha.16",
38
+ "@d-zero/linters": "5.0.0-alpha.45",
39
+ "@d-zero/postcss-config": "5.0.0-alpha.16",
40
+ "@d-zero/tsconfig": "0.3.2",
41
+ "@types/node": "22.7.5",
42
42
  "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"
43
+ "husky": "9.1.6",
44
+ "npm-run-all2": "6.2.3",
45
+ "sass": "1.79.4",
46
+ "typescript": "5.6.3"
47
47
  },
48
48
  "dependencies": {
49
49
  "destyle.css": "4.0.1",
50
- "tslib": "2.6.3"
50
+ "tslib": "2.7.0"
51
51
  },
52
52
  "volta": {
53
- "node": "22.5.1",
53
+ "node": "22.9.0",
54
54
  "yarn": "1.22.22"
55
55
  },
56
- "gitHead": "6ce96d0c6b7b409008b927e293ceddeef5b4ca85"
56
+ "gitHead": "c217da611ffc71b60cee585dd74701c8a1060c6f"
57
57
  }
@@ -1,9 +0,0 @@
1
- import createMainScript, { __smLte } from '../../__assets/_libs/script/index';
2
-
3
- // eslint-disable-next-line no-console
4
- console.log(__smLte);
5
-
6
- createMainScript(() => {
7
- // eslint-disable-next-line no-console
8
- console.log('このスクリプトは、サブフォルダのテスト用です。');
9
- });
@@ -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
- };