Skip to content

Commit f34c334

Browse files
author
Dave Syer
committed
Add notes on ng build --watch
1 parent 53c53d0 commit f34c334

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ target/
88
.project
99
.settings
1010
.springBeans
11+
.sts4-cache/
1112

1213
### IntelliJ IDEA ###
1314
.idea

.vscode/tasks.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"label": "ng-build",
88
"type": "shell",
99
"command": "src/main/client/ng build"
10+
},
11+
{
12+
"label": "ng-watch",
13+
"type": "shell",
14+
"command": "src/main/client/ng build --watch"
1015
}
1116
]
1217
}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,17 @@ What VSCode doesn't have currently is automatic detection of `npm` build tools i
220220
"label": "ng-build",
221221
"type": "shell",
222222
"command": "src/main/client/ng build"
223+
},
224+
{
225+
"label": "ng-watch",
226+
"type": "shell",
227+
"command": "src/main/client/ng build --watch"
223228
}
224229
]
225230
}
226231
```
227232

228-
With that in place your `Tasks->Run Task...` menu should include the `ng-build` option, and it will run the angular build for you. You could add other entries for running tests.
233+
With that in place your `Tasks->Run Task...` menu should include the `ng-watch` option, and it will run the angular build for you and re-compile if you make changes. You could add other entries for running tests.
229234

230235
## Adding Bootstrap
231236

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<groupId>org.springframework.boot</groupId>
3030
<artifactId>spring-boot-starter-web</artifactId>
3131
</dependency>
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-devtools</artifactId>
35+
</dependency>
3236
<dependency>
3337
<groupId>org.springframework.boot</groupId>
3438
<artifactId>spring-boot-configuration-processor</artifactId>

0 commit comments

Comments
 (0)