Skip to content

Commit

Permalink
Lose webpack, just install npm-packages and copy the two files manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 6, 2024
1 parent 6a10f99 commit a00c537
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 79 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: git fetch --all
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install & build assets
run: |
Expand All @@ -37,7 +37,9 @@ jobs:
npm install --package-lock-only
npm clean-install
npm audit fix
npm run build
cp node_modules/@highlightjs/cdn-assets/highlight.min.js lib/
cp node_modules/pako/dist/pako_inflate.js lib/pako_inflate.min.js
# Store the version, stripping any v-prefix
- name: Write release version
Expand Down
17 changes: 2 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
{
"name": "SAML-tracer",
"main": "index.js",
"repository": "https://github.com/simplesamlphp/SAML-tracer",
"license": "BSD-2-Clause",
"engines": {
"node": ">=18.0.0",
"npm": ">=8.0.0"
},
"scripts": {
"build": "webpack"
},
"dependencies": {
"highlight.js": "^11.9.0",
"@highlightjs/cdn-assets": "^11.9.0",
"pako": "^2.1.0"
},
"devDependencies": {
"babel-loader": "^9.1.3",
"@babel/preset-env": "^7.23.2",
"copy-webpack-plugin": "^11.0.0",
"terser-webpack-plugin": "^5.3.9",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"browserslist": "last 2 versions, ie 11, > 1%"
}
}
10 changes: 0 additions & 10 deletions src/resources/js/highlight.js

This file was deleted.

52 changes: 0 additions & 52 deletions webpack.config.js

This file was deleted.

0 comments on commit a00c537

Please sign in to comment.