Skip to content

Commit

Permalink
cd front-end for build
Browse files Browse the repository at this point in the history
HedwigO committed Dec 6, 2023
1 parent 0c16c16 commit 256b9f0
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -41,15 +41,19 @@ jobs:
run: |
cd front-end
npm install
- name: Create build folder in front-end
run: |
cd front-end
npm run build
- name: Start front-end
run: |
cd front-end
npm start &
sleep 10 # Waits 10 seconds to ensure front-end is up
- name: Create build folder in front-end
run: npm run build




11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -11,14 +11,5 @@
"devDependencies": {
"chai": "^4.3.10",
"mocha": "^10.2.0"
},
"scripts": {
"start-back-end": "cd back-end && npm start",
"start-front-end": "cd front-end && npm start",
"test-back-end": "cd back-end && npm test",
"test-front-end": "cd front-end && npm test",
"build": "webpack --config webpack.config.js",
"test": "npm run test-back-end && npm run test-front-end"
}

}
}

0 comments on commit 256b9f0

Please sign in to comment.