Skip to content

Commit

Permalink
Remove unused dev nvm dependencies, run prettier
Browse files Browse the repository at this point in the history
Also, fix size limit to match reality.
  • Loading branch information
paskal committed Nov 2, 2024
1 parent 6f7f59b commit d610927
Show file tree
Hide file tree
Showing 10 changed files with 15,407 additions and 13,252 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-frontend-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- '.github/workflows/ci-frontend-check.yml'
- 'hugo/package.json'
- 'hugo/package-lock.json'
- 'hugo/.size-limit.js'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
- "hugo/**/*.scss"
Expand Down
2 changes: 1 addition & 1 deletion hugo/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = [
},
{
path: 'static/build/vendor.js',
limit: '128 KB',
limit: '135 KB',
},
{
path: 'static/build/app.css',
Expand Down
28,631 changes: 15,396 additions & 13,235 deletions hugo/package-lock.json

Large diffs are not rendered by default.

13 changes: 3 additions & 10 deletions hugo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Сайт подкаста Радио-Т",
"scripts": {
"build": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build:stats": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js --profile --json=stats.json",
"build:stats": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js --profile --json > stats.json",
"hugo": "cross-env-shell hugo serve --minify --port ${HUGO_PORT:-1313}",
"hugo:no-live": "cross-env-shell hugo serve --minify --disableLiveReload --port ${HUGO_PORT:-1313}",
"dev": "cross-env NODE_ENV=development run-p dev:watch hugo",
Expand Down Expand Up @@ -51,21 +51,14 @@
"webpack-cli": "^3.3.12"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/preset-react": "^7.12.13",
"@size-limit/file": "^4.10.1",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"babel-preset-preact": "^2.0.0",
"browser-sync": "^2.29.3",
"browser-sync-webpack-plugin": "^2.2.2",
"eslint": "^7.22.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-react": "^7.22.0",
"prettier": "^2.2.1",
"raw-loader": "^3.0.0",
"size-limit": "^4.10.1",
"url-polyfill": "^1.1.5",
"webpack-bundle-analyzer": "^4.10.2"
"npm-run-all": "^4.1.5",
"size-limit": "^4.10.1"
}
}
2 changes: 1 addition & 1 deletion hugo/src/scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "sass:math";
@use 'sass:math';

@function px($px) {
@return math.div($px * 1rem, 15);
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/_navbar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "sass:math";
@use 'sass:math';

.navbar {
font-size: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/_search.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "sass:math";
@use 'sass:math';

@function remVw($rem, $breakpoint: 'xl') {
@return (math.div(math.div($rem, 1) * 16px, map_get($grid-breakpoints, $breakpoint)) * 100) * 1vw;
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//// Variables should follow the `$component-state-property-size` formula for
//// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
//
@use "sass:math";
@use 'sass:math';

$theme: 'dark';
$theme-suffix: '-dark'; // Add suffix to filenames, eg logo-dark.svg
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//// Variables should follow the `$component-state-property-size` formula for
//// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
//
@use "sass:math";
@use 'sass:math';

$theme: 'light';
$theme-suffix: '';
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "sass:math";
@use 'sass:math';

@import 'player';
@import 'navbar';
Expand Down

0 comments on commit d610927

Please sign in to comment.