Skip to content

Commit

Permalink
Update firebase-hosting-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-exe authored Jun 2, 2024
1 parent 2d3e503 commit 1bf3d31
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,33 @@ jobs:
"description": "Mobile App Development for Juniors",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js"
},
"author": "Raydo Matthee",
"license": "ISC",
"dependencies": {}
"dependencies": {
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
}
}' > package.json
fi
- name: Create webpack.config.js if it doesn't exist
run: |
if [ ! -f webpack.config.js ]; then
echo 'const path = require("path");
module.exports = {
entry: "./web-portal/js/scripts.js",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "web-portal/js")
},
mode: "production"
};' > webpack.config.js
fi

- name: Install dependencies
run: |
if [ -f package-lock.json ]; then
Expand Down

0 comments on commit 1bf3d31

Please sign in to comment.