Skip to content

Commit

Permalink
build(tools): update build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
adorade committed Mar 13, 2024
1 parent 47a7e70 commit 5f053e0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
with:
node-version: ${{ matrix.node }}

# install dependencies and build
- name: Install deps and build
# install dependencies
- name: Install deps
run: yarn install

# lint `scss` files
- name: Lint files
run: yarn run scss:lint

# build proccess
- name: Build proccess
run: yarn run build
1 change: 1 addition & 0 deletions .webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports.commonConfig = ({ mode }) => (
output: {
filename: '../../../build/[name].js',
path: themePath + '/css',
clean: true
},
},
extractScss(),
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"repository": "https://github.com/adorade/boodark.git",
"author": "Adorade",
"scripts": {
"postinstall": "yarn run build",
"build": "yarn run build:prod",
"build:analyze": "webpack --progress --mode=production --analyze",
"build:dev": "webpack --progress --mode=development",
"build:prod": "webpack --progress --mode=production",
"watch": "webpack --progress --watch --mode=development",
"css:lint": "stylelint 'themes/boodark/scss/*.scss'"
"scss:lint": "stylelint 'themes/boodark/scss/*.scss'"
},
"dependencies": {
"@babel/runtime": "7.24.0",
"@popperjs/core": "2.11.8",
"bootstrap": "5.2.3"
},
"devDependencies": {
"@babel/runtime": "7.24.0",
"autoprefixer": "10.4.18",
"bootstrap": "5.2.3",
"css-loader": "6.10.0",
"css-minimizer-webpack-plugin": "6.0.0",
"mini-css-extract-plugin": "2.8.1",
Expand All @@ -27,14 +28,12 @@
"rtlcss-webpack-plugin": "4.0.7",
"sass": "1.64.2",
"sass-loader": "14.1.1",
"stylelint": "16.2.1",
"stylelint-config-standard-scss": "13.0.0",
"webpack": "5.90.3",
"webpack-cli": "5.1.4",
"webpack-merge": "5.10.0"
},
"devDependencies": {
"stylelint": "16.2.1",
"stylelint-config-standard-scss": "13.0.0"
},
"engines": {
"node": ">=18.12.0"
},
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,9 @@ domutils@^3.0.1:
domhandler "^5.0.3"

electron-to-chromium@^1.4.668:
version "1.4.703"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.703.tgz#786ab0c8cfe548b9da03890f923e69b1ae522741"
integrity sha512-094ZZC4nHXPKl/OwPinSMtLN9+hoFkdfQGKnvXbY+3WEAYtVDpz9UhJIViiY6Zb8agvqxiaJzNG9M+pRZWvSZw==
version "1.4.704"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.704.tgz#218696fc0b1cb42298b9ae0612d9c4ffd6f8500e"
integrity sha512-OK01+86Qvby1V6cTiowVbhp25aX4DLZnwar+NocAOXdzKAByd+jq5156bmo4kHwevWMknznW18Y/Svfk2dU91A==

emoji-regex@^8.0.0:
version "8.0.0"
Expand Down

0 comments on commit 5f053e0

Please sign in to comment.