Skip to content

Commit b2967d7

Browse files
authored
Update all dependencies (#1403)
1 parent 6527156 commit b2967d7

5 files changed

Lines changed: 1653 additions & 2160 deletions

File tree

README.md

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,17 @@ npm run build
143143
## Details
144144

145145
1. [SCSS](http://sass-lang.com/) stylesheets preprocessing
146-
147-
- SCSS entry point is `main.scss` file located in `assets/styles`
148-
- The whole stylesheets file/folder structure is up to you
149-
- [ITSCSS](https://github.com/scriptex/itscss) boilerplate used as a starting point.
150-
- Glob import in SASS thanks to [node-sass-magic-importer](https://github.com/maoberlehner/node-sass-magic-importer)
146+
- SCSS entry point is `main.scss` file located in `assets/styles`
147+
- The whole stylesheets file/folder structure is up to you
148+
- [ITSCSS](https://github.com/scriptex/itscss) boilerplate used as a starting point.
151149

152150
2. [PostCSS](https://github.com/postcss/postcss) stylesheets postprocessing including:
153-
154-
- [easy importing](https://github.com/TrySound/postcss-easy-import) of non-sass files
155-
- [url rebase](https://github.com/postcss/postcss-url) - locates and copies assets from `node_modules`
156-
- [postcss-utilities](https://github.com/ismamz/postcss-utilities) - allows usage of utility mixins such as `clearfix`
157-
- [flexbox bugs](https://github.com/luisrudge/postcss-flexbugs-fixes) - fixes common flexbox issues on Internet Explorer
158-
- [css minification](http://cssnano.co/) - minifies the bundles stylesheet
159-
- [automatic vendor prefixes](https://github.com/postcss/autoprefixer)
151+
- [easy importing](https://github.com/TrySound/postcss-easy-import) of non-sass files
152+
- [url rebase](https://github.com/postcss/postcss-url) - locates and copies assets from `node_modules`
153+
- [postcss-utilities](https://github.com/ismamz/postcss-utilities) - allows usage of utility mixins such as `clearfix`
154+
- [flexbox bugs](https://github.com/luisrudge/postcss-flexbugs-fixes) - fixes common flexbox issues on Internet Explorer
155+
- [css minification](http://cssnano.co/) - minifies the bundles stylesheet
156+
- [automatic vendor prefixes](https://github.com/postcss/autoprefixer)
160157

161158
> "Write your CSS rules without vendor prefixes (in fact, forget about them entirely)"
162159
@@ -174,14 +171,12 @@ npm run build
174171
The class name corresponds to the name of the PNG file.
175172

176173
4. Latest Typescript support
177-
178-
- Minification of the bundled file
179-
- Source maps
174+
- Minification of the bundled file
175+
- Source maps
180176

181177
5. Automatic browser reload using [BrowserSync](https://browsersync.io/)
182-
183-
- The setup assumes that you have a web server (MAMP, XAMPP, etc) installed.
184-
- If you wish to use a proxy in browsersync you can do it using the `url` CLI argument like this:
178+
- The setup assumes that you have a web server (MAMP, XAMPP, etc) installed.
179+
- If you wish to use a proxy in browsersync you can do it using the `url` CLI argument like this:
185180

186181
```sh
187182
yarn start --env url=http://your.app
@@ -212,10 +207,9 @@ npm run build
212207
This action is performed each time the `start` command is invoked.
213208

214209
In order to use the SVG sprite you first need to include it in your markup. You can do so in several ways:
215-
216-
- If you're using PHP files, include it in each of your PHP files: `<?php include_once('assets/dist/sprite.svg'); ?>`
217-
- If you're using HTML files, paste the content of the SVG sprite in each of your HTML files.
218-
- If you're using another templating method (posthtml include, handlebars, ejs, etc) you need to do so according to its documentation.
210+
- If you're using PHP files, include it in each of your PHP files: `<?php include_once('assets/dist/sprite.svg'); ?>`
211+
- If you're using HTML files, paste the content of the SVG sprite in each of your HTML files.
212+
- If you're using another templating method (posthtml include, handlebars, ejs, etc) you need to do so according to its documentation.
219213

220214
It is preferred to include the SVG sprite right after your opening `<body>` tag
221215

@@ -233,13 +227,13 @@ npm run build
233227

234228
The `assets` folder contains several folders:
235229

236-
- `images` - contains several folders too:
237-
- `favicon` - contains [all icons variations](https://github.com/audreyr/favicon-cheat-sheet)
238-
- `sprite` - contains png sprite's parts
239-
- `svg` - contains svg sprite's parts
240-
- `temp` - contains content images
241-
- `scripts` - contains the JS modules
242-
- `styles` - contains the SASS stylesheets
230+
- `images` - contains several folders too:
231+
- `favicon` - contains [all icons variations](https://github.com/audreyr/favicon-cheat-sheet)
232+
- `sprite` - contains png sprite's parts
233+
- `svg` - contains svg sprite's parts
234+
- `temp` - contains content images
235+
- `scripts` - contains the JS modules
236+
- `styles` - contains the SASS stylesheets
243237

244238
**Each `start` command regenerates the contents of the `dist` folder.**
245239

package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"itscss": "3.1.0"
4343
},
4444
"devDependencies": {
45-
"@types/node": "24.12.4",
46-
"@typescript-eslint/eslint-plugin": "8.59.4",
47-
"@typescript-eslint/parser": "8.59.4",
45+
"@types/node": "25.9.1",
46+
"@typescript-eslint/eslint-plugin": "8.60.1",
47+
"@typescript-eslint/parser": "8.60.1",
4848
"autoprefixer": "10.5.0",
4949
"browser-sync": "3.0.4",
5050
"browser-sync-webpack-plugin": "2.4.0",
@@ -54,35 +54,34 @@
5454
"critical": "8.0.0",
5555
"css-loader": "7.1.4",
5656
"cssnano": "8.0.1",
57-
"eslint": "10.4.0",
57+
"eslint": "10.4.1",
5858
"eslint-config-prettier": "10.1.8",
5959
"eslint-config-recommended": "4.1.0",
6060
"eslint-plugin-compat": "7.0.2",
6161
"mini-css-extract-plugin": "2.10.2",
62-
"node-sass-magic-importer": "5.3.3",
6362
"postcss": "8.5.15",
6463
"postcss-cli": "11.0.1",
6564
"postcss-easy-import": "4.0.0",
6665
"postcss-flexbugs-fixes": "5.0.2",
6766
"postcss-loader": "8.2.1",
6867
"postcss-merge-rules": "8.0.0",
6968
"postcss-normalize": "13.0.1",
70-
"postcss-url": "10.1.3",
69+
"postcss-url": "10.1.4",
7170
"postcss-utilities": "0.8.4",
7271
"postcss-watch-folder": "2.0.0",
73-
"sass": "1.99.0",
74-
"sass-loader": "16.0.8",
72+
"sass": "1.100.0",
73+
"sass-loader": "17.0.0",
7574
"source-map-loader": "5.0.0",
7675
"stylelint": "17.12.0",
7776
"stylelint-config-recommended": "18.0.0",
7877
"stylelint-config-standard-scss": "17.0.0",
7978
"stylelint-no-unsupported-browser-features": "8.1.1",
80-
"stylelint-scss": "7.1.1",
79+
"stylelint-scss": "7.2.0",
8180
"svg-symbol-sprite": "1.5.2",
82-
"ts-loader": "9.5.7",
83-
"typescript": "5.9.3",
84-
"webpack": "5.107.0",
85-
"webpack-cli": "7.0.2",
81+
"ts-loader": "9.6.0",
82+
"typescript": "6.0.3",
83+
"webpack": "5.107.2",
84+
"webpack-cli": "7.0.3",
8685
"webpack-shell-plugin-next": "2.3.3",
8786
"webpack-spritesmith": "1.1.0"
8887
},

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"noImplicitReturns": true,
1818
"noImplicitThis": true,
1919
"noStrictGenericChecks": false,
20+
"rootDir": ".",
2021
"outDir": "./assets/dist/",
2122
"pretty": true,
2223
"removeComments": false,
@@ -27,7 +28,7 @@
2728
"strictFunctionTypes": true,
2829
"strictPropertyInitialization": true,
2930
"strictNullChecks": true,
30-
"target": "es5"
31+
"target": "ESNext"
3132
},
3233
"include": ["./assets/scripts/**/*"]
3334
}

webpack.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { parse } = require('url');
33
const { resolve } = require('path');
44
const { readdirSync } = require('fs');
55

6-
const magicImporter = require('node-sass-magic-importer');
76
const { ProvidePlugin } = require('webpack');
87
const SpritesmithPlugin = require('webpack-spritesmith');
98
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
@@ -24,7 +23,7 @@ const browserSyncConfig = server => ({
2423

2524
exec(`php ${file} > ${name}.html`);
2625
}
27-
}
26+
}
2827
: '**/*.php',
2928
'**/*.html',
3029
'./assets/dist/app.css',
@@ -149,10 +148,7 @@ module.exports = (env, argv) => {
149148
{
150149
loader: 'sass-loader',
151150
options: {
152-
api: 'legacy',
153-
sassOptions: {
154-
importer: magicImporter()
155-
},
151+
api: 'auto',
156152
...sourceMap
157153
}
158154
}

0 commit comments

Comments
 (0)