Skip to content

Commit 000ab85

Browse files
committed
Update some of the packages
1 parent e6d7c53 commit 000ab85

File tree

13 files changed

+65
-54
lines changed

13 files changed

+65
-54
lines changed

.stylelintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src/sass/grid/
2+
src/sass/lib/

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ This starter uses `@11ty/eleventy-img` to generate modern image formats (AVIF, W
115115

116116
You can change image compression settings for avif, webp, jpeg files in `.eleventy.js` config.
117117

118-
Png are compressed with [pngquant](https://pngquant.org/) as it provides the best compression. You can change png compression settings in `optimize-png.js` config.
119-
120118
## TypeScript (optional)
121119

122120
This boilerplate has built-in support for TypeScript, but it is completely optional to use it during development. We have chosen to use JSDoc notation ([which is officially supported by TypeScript team](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html)) to provide TypeScript support. This means that you don't have to write your code using TypeScript syntax, and can instead continue to write your code using JavaScript syntax with JSDoc notation for TypeScript support. This approach also allows you to easily disable TypeScript if you do not need it at some point during your development process, for example, to speed up development or if you have new developers working on the project who are not familiar with TypeScript.

package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"lint:js": "eslint --max-warnings 0 \"src/**/*.{jsx,js}\"",
2121
"pre-commit": "npm-run-all format --parallel lint:*",
2222
"beautify-html": "html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true --input-dir dist --output-dir dist --file-ext html",
23-
"optimize-png": "node scripts/optimize-png.js",
2423
"validate:ci": "npm-run-all --parallel lint:*"
2524
},
2625
"husky": {
@@ -56,35 +55,35 @@
5655
"eslint-plugin-sonarjs": "^0.6.0",
5756
"eslint-plugin-unicorn": "^28.0.2",
5857
"fancy-log": "^1.3.3",
59-
"gulp": "^4.0.2",
58+
"gulp": "^5.0.1",
6059
"gulp-cheerio": "^1.0.0",
6160
"gulp-clean-css": "^4.3.0",
6261
"gulp-dart-sass": "^1.1.0",
6362
"gulp-if": "^3.0.0",
64-
"gulp-imagemin": "^7.1.0",
63+
"gulp-imagemin": "^9.1.0",
6564
"gulp-plumber": "^1.2.1",
6665
"gulp-postcss": "^9.0.1",
6766
"gulp-rename": "^2.0.0",
68-
"gulp-sourcemaps": "^3.0.0",
69-
"gulp-svgmin": "^3.0.0",
67+
"gulp-sourcemaps": "^2.6.5",
68+
"gulp-svgmin": "^4.1.0",
7069
"gulp-svgstore": "^7.0.1",
71-
"gulp-watch": "^5.0.1",
70+
"gulp-watch": "^4.2.4",
7271
"gulp-zip": "^5.0.2",
7372
"html-minifier": "^4.0.0",
7473
"image-size": "^0.9.4",
7574
"imagemin": "^7.0.1",
76-
"imagemin-mozjpeg": "^9.0.0",
77-
"imagemin-pngquant": "^9.0.2",
75+
"imagemin-mozjpeg": "^10.0.0",
76+
"imagemin-pngquant": "^10.0.0",
7877
"node-notifier": "^9.0.1",
7978
"npm-run-all": "^4.1.5",
80-
"postcss": "^8.4.49",
81-
"postcss-assets": "^5.0.0",
79+
"postcss": "^8.5.6",
80+
"postcss-assets": "^6.0.0",
8281
"rimraf": "^3.0.2",
83-
"stylelint": "^13.11.0",
84-
"stylelint-config-idiomatic-order": "^8.1.0",
85-
"stylelint-config-recommended-scss": "^4.2.0",
86-
"stylelint-scss": "^3.19.0",
87-
"tailwindcss": "^2.2.19",
82+
"stylelint": "^16.21.1",
83+
"stylelint-config-idiomatic-order": "^10.0.0",
84+
"stylelint-config-recommended-scss": "^15.0.1",
85+
"stylelint-scss": "^6.12.1",
86+
"tailwindcss": "^3.4.17",
8887
"through2": "^4.0.2",
8988
"webpack": "^5.100.2",
9089
"webpack-cli": "^4.10.0"

scripts/optimize-png.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/_layouts/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<meta name="description" content="Set a proper description" />
1313

1414
{% block stylesheets %}
15-
<link rel="stylesheet" href="{{ STATIC_PATH }}/css/tailwind.css" />
1615
<link rel="stylesheet" href="{{ STATIC_PATH }}/css/styles.css" />
16+
<link rel="stylesheet" href="{{ STATIC_PATH }}/css/tailwind.css" />
1717
{% endblock %}
1818
</head>
1919
<body>

src/components/button/button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.button {
22
@include button-reset;
3-
@extend .transition-active;
3+
@extend %transition-active;
44
display: flex;
55
height: 54px;
66
align-items: center;
77
justify-content: center;
88
padding: 1px 20px 0;
99
border: 2px solid rgba(#fff, 0.2);
10+
border-radius: 8px;
1011
backdrop-filter: blur(8px);
1112
background-color: rgba(#fff, 0.05);
12-
border-radius: 8px;
1313
color: #fff;
1414
cursor: pointer;
1515
font-size: 16px;

src/index.njk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
generated.
9090
</h3>
9191
{# passing maxWidth=500 here #}
92-
<div class="max-w-xs bg-gray-800 p-2 rounded">
92+
<div class="max-w-xs bg-gray-800 rounded">
9393
{%
9494
image './src/images/wolf.png',
9595
{
@@ -101,12 +101,14 @@
101101
</div>
102102
</section>
103103
<section class="mt-14">
104-
<h3 class="text-lg font-semibold mb-1 max-w-xl">
104+
<h3 class="text-lg font-semibold mb-2 max-w-xl">
105105
An image inlined in CSS example (compress such images manually!). Not
106-
recommended for wide usage, see below.
106+
recommended for wide usage.
107107
</h3>
108-
<h4 class="max-w-xl text-lg text-red-400 mb-6 font-bold tracking-wide">
109-
<span class="uppercase">Attention!</span> Please use this feature with
108+
<h4
109+
class="max-w-xl text-lg text-amber-200 mb-6 font-bold tracking-wide"
110+
>
111+
<span class="uppercase">Warning!</span> Please use this feature with
110112
caution as it may bloat the final CSS file. Inlining images could be a
111113
good approach if the file is quite small, in other cases prefer
112114
`&#123;% image %&#125;` tag.

src/sass/_extends.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
@mixin button-reset {
22
border: none;
3+
border-radius: 0;
34
appearance: none;
45
background-color: transparent;
5-
border-radius: 0;
66
cursor: pointer;
77
text-decoration: none;
88
user-select: none;
99
}
10+
11+
%transition-active {
12+
transition:
13+
color $default-transition-duration $default-transition-function,
14+
background $default-transition-duration $default-transition-function,
15+
border-color $default-transition-duration $default-transition-function,
16+
opacity $default-transition-duration $default-transition-function;
17+
}
18+
19+
%transition-hover {
20+
transition: none;
21+
}

src/sass/_global.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
.transition-active {
2-
transition: color $default-transition-duration $default-transition-function,
3-
background $default-transition-duration $default-transition-function,
4-
border-color $default-transition-duration $default-transition-function,
5-
opacity $default-transition-duration $default-transition-function;
2+
@extend %transition-active;
63
}
74

85
.transition-hover {
9-
transition: none;
6+
@extend %transition-hover;
107
}
118

129
body {

src/sass/_reset.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ button,
4444
[type='button'],
4545
[type='reset'],
4646
[type='submit'] {
47-
appearance: button;
47+
appearance: auto;
4848
background-color: #0000;
4949
background-image: none;
5050
}

0 commit comments

Comments
 (0)