Skip to content

Commit 2af4cc6

Browse files
committed
Update build command for heroku
1 parent 8abee2b commit 2af4cc6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

package.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"name": "jira-clone-angular",
3-
"version": "1.0.0",
3+
"version": "0.0.1",
44
"description": "A simplified Jira clone built with Angular 9 and Akita",
55
"scripts": {
6-
"install-dependencies": "npm i && cd frontend && npm i",
6+
"install-dependencies": "npm run install-dependencies-front && npm run install-dependencies-back",
7+
"install-dependencies-front": "cd frontend && npm i",
8+
"install-dependencies-back": "cd backend && npm i",
79
"start:front": "cd frontend && npm start",
810
"build:front": "cd frontend && npm run build",
9-
"test:front": "cd frontend && npm run test",
10-
"start": "npm run start:front",
11-
"build": "npm run install-dependencies && npm run build:front"
11+
"start:back": "cd backend && npm start",
12+
"build:back": "cd backend && npm run build",
13+
"start": "npm run start:back && npm run start:front",
14+
"build": "npm run install-dependencies && npm run build:back && npm run build:front",
15+
"heroku-postbuild": "npm run install-dependencies-back && npm run build:back"
1216
},
1317
"repository": {
1418
"type": "git",
@@ -26,5 +30,8 @@
2630
"bugs": {
2731
"url": "https://github.com/trungk18/jira-clone-angular/issues"
2832
},
29-
"homepage": "https://github.com/trungk18/jira-clone-angular#readme"
33+
"homepage": "https://github.com/trungk18/jira-clone-angular#readme",
34+
"engines": {
35+
"node": "12.x"
36+
}
3037
}

0 commit comments

Comments
 (0)