Skip to content

Commit d6266a1

Browse files
authored
Update all dependencies (#1075)
1 parent dc2f582 commit d6266a1

5 files changed

Lines changed: 1415 additions & 2367 deletions

File tree

README.md

Lines changed: 25 additions & 31 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 SCSS 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,16 +171,14 @@ npm run build
174171
The class name corresponds to the name of the PNG file.
175172

176173
4. Latest EcmaScript support
177-
178-
- Usage of the latest features in EcmaScript
179-
- Using [Babel](https://github.com/babel/babel) to transpile to ES5
180-
- Minification of the bundled file
181-
- Source maps
174+
- Usage of the latest features in EcmaScript
175+
- Using [Babel](https://github.com/babel/babel) to transpile to ES5
176+
- Minification of the bundled file
177+
- Source maps
182178

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

188183
```sh
189184
yarn start --env url=http://your.app
@@ -214,10 +209,9 @@ npm run build
214209
This action is performed each time the `start` command is invoked.
215210

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

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

@@ -235,13 +229,13 @@ npm run build
235229

236230
The `assets` folder contains several folders:
237231

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

246240
**Each `start` command regenerates the contents of the `dist` folder.**
247241

eslint.config.mjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,12 @@ import globals from 'globals';
22

33
import compat from 'eslint-plugin-compat';
44

5-
const GLOBALS_BROWSER_FIX = Object.assign({}, globals.browser, {
6-
AudioWorkletGlobalScope: globals.browser['AudioWorkletGlobalScope ']
7-
});
8-
9-
delete GLOBALS_BROWSER_FIX['AudioWorkletGlobalScope '];
10-
115
export default [
126
{
137
files: ['./assets/scripts/**/*.js'],
148
languageOptions: {
159
globals: {
16-
...globals.node,
17-
...GLOBALS_BROWSER_FIX
10+
...globals.node
1811
},
1912
parserOptions: {
2013
ecmaVersion: 2023,

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"itscss": "3.1.0"
4343
},
4444
"devDependencies": {
45-
"@babel/core": "7.29.0",
46-
"@babel/preset-env": "7.29.5",
45+
"@babel/core": "7.29.7",
46+
"@babel/preset-env": "7.29.7",
4747
"autoprefixer": "10.5.0",
4848
"babel-loader": "10.1.1",
4949
"browser-sync": "3.0.4",
@@ -54,31 +54,30 @@
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-recommended": "4.1.0",
5959
"eslint-plugin-compat": "7.0.2",
6060
"mini-css-extract-plugin": "2.10.2",
61-
"node-sass-magic-importer": "5.3.3",
62-
"postcss": "8.5.14",
61+
"postcss": "8.5.15",
6362
"postcss-cli": "11.0.1",
6463
"postcss-easy-import": "4.0.0",
6564
"postcss-flexbugs-fixes": "5.0.2",
6665
"postcss-loader": "8.2.1",
6766
"postcss-merge-rules": "8.0.0",
6867
"postcss-normalize": "13.0.1",
69-
"postcss-url": "10.1.3",
68+
"postcss-url": "10.1.4",
7069
"postcss-utilities": "0.8.4",
7170
"postcss-watch-folder": "2.0.0",
7271
"sass": "1.100.0",
73-
"sass-loader": "16.0.8",
72+
"sass-loader": "17.0.0",
7473
"stylelint": "17.12.0",
7574
"stylelint-config-recommended": "18.0.0",
7675
"stylelint-config-standard-scss": "17.0.0",
7776
"stylelint-no-unsupported-browser-features": "8.1.1",
78-
"stylelint-scss": "7.1.1",
77+
"stylelint-scss": "7.2.0",
7978
"svg-symbol-sprite": "1.5.2",
8079
"webpack": "5.107.2",
81-
"webpack-cli": "7.0.2",
80+
"webpack-cli": "7.0.3",
8281
"webpack-shell-plugin-next": "2.3.3",
8382
"webpack-spritesmith": "1.1.0"
8483
},

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');
@@ -35,7 +34,7 @@ const browserSyncConfig = server => ({
3534

3635
exec(`php ${file} > ${name}.html`);
3736
}
38-
}
37+
}
3938
: '**/*.php',
4039
'**/*.html',
4140
'./assets/dist/app.css',
@@ -159,10 +158,7 @@ module.exports = (env, argv) => {
159158
{
160159
loader: 'sass-loader',
161160
options: {
162-
api: 'legacy',
163-
sassOptions: {
164-
importer: magicImporter()
165-
},
161+
api: 'auto',
166162
...sourceMap
167163
}
168164
}

0 commit comments

Comments
 (0)