Skip to content

Commit 68e9075

Browse files
author
Dave Syer
committed
Move client code to src/main/client
1 parent 1d651c6 commit 68e9075

34 files changed

+83
-53
lines changed

.gitignore

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,24 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
23

3-
# compiled output
4-
/target
5-
/dist
6-
/tmp
7-
/out-tsc
8-
9-
# dependencies
10-
/node
11-
/node_modules
12-
13-
# IDEs and editors
14-
/.idea
15-
.project
4+
### STS ###
5+
.apt_generated
166
.classpath
17-
.c9/
18-
*.launch
19-
.settings/
20-
*.sublime-workspace
21-
22-
# IDE - VSCode
23-
.vscode/*
24-
!.vscode/settings.json
25-
!.vscode/tasks.json
26-
!.vscode/launch.json
27-
!.vscode/extensions.json
28-
29-
# misc
30-
/.sass-cache
31-
/connect.lock
32-
/coverage
33-
/libpeerconnection.log
34-
npm-debug.log
35-
testem.log
36-
/typings
7+
.factorypath
8+
.project
9+
.settings
10+
.springBeans
3711

38-
# e2e
39-
/e2e/*.js
40-
/e2e/*.map
12+
### IntelliJ IDEA ###
13+
.idea
14+
*.iws
15+
*.iml
16+
*.ipr
4117

42-
# System Files
43-
.DS_Store
44-
Thumbs.db
18+
### NetBeans ###
19+
nbproject/private/
20+
build/
21+
nbbuild/
22+
dist/
23+
nbdist/
24+
.nb-gradle/

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,26 @@ node: 8.8.1
5959
os: linux x64
6060
```
6161

62-
No create an angular app:
62+
Now create an angular app:
6363

6464
```
6565
$ ./ng new client
6666
$ rm -rf client/node*
67-
$ mv client/src tmp
68-
$ mv client/* client/.??* .
69-
$ rm -rf client
70-
$ mv tmp client
71-
$ sed -i -e 's,src,client,' .angular-cli.json
72-
$ sed -i -e 's,dist,target/classes/static,' .angular-cli.json
67+
$ mv client src/main
68+
$ sed -i -e 's,dist,../../../target/classes/static,' src/main/client/.angular-cli.json
69+
$ mv ng npm src/main/client
7370
```
7471

7572
Add
7673

74+
```
75+
<configuration>
76+
<workingDirectory>src/main/client</workingDirectory>
77+
</configuration>
78+
```
79+
80+
and
81+
7782
```
7883
<execution>
7984
<id>npm-install</id>
@@ -89,7 +94,7 @@ Add
8994
Install the modules again using `mvn generate-resources`.
9095

9196
```
92-
$ ./ng version
97+
$ (cd src/main/client; ./ng version)
9398
_ _ ____ _ ___
9499
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
95100
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
@@ -117,7 +122,7 @@ typescript: 2.3.4
117122
And the tests work:
118123

119124
```
120-
$ ./ng e2e.
125+
$ (cd src/main/client; ./ng e2e.)
121126
..
122127
[13:59:46] I/direct - Using ChromeDriver directly...
123128
Jasmine started

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<artifactId>frontend-maven-plugin</artifactId>
4949
<version>1.6</version>
5050
<configuration>
51+
<workingDirectory>src/main/client</workingDirectory>
5152
<nodeVersion>v8.8.1</nodeVersion>
5253
</configuration>
5354
<executions>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"apps": [
77
{
8-
"root": "client",
9-
"outDir": "target/classes/static",
8+
"root": "src",
9+
"outDir": "../../../target/classes/static",
1010
"assets": [
1111
"assets",
1212
"favicon.ico"
@@ -36,11 +36,11 @@
3636
},
3737
"lint": [
3838
{
39-
"project": "client/tsconfig.app.json",
39+
"project": "src/tsconfig.app.json",
4040
"exclude": "**/node_modules/**"
4141
},
4242
{
43-
"project": "client/tsconfig.spec.json",
43+
"project": "src/tsconfig.spec.json",
4444
"exclude": "**/node_modules/**"
4545
},
4646
{

src/main/client/.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/target
5+
/dist
6+
/tmp
7+
/out-tsc
8+
9+
# dependencies
10+
/node
11+
/node_modules
12+
13+
# IDEs and editors
14+
/.idea
15+
.project
16+
.classpath
17+
.c9/
18+
*.launch
19+
.settings/
20+
*.sublime-workspace
21+
22+
# IDE - VSCode
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
28+
29+
# misc
30+
/.sass-cache
31+
/connect.lock
32+
/coverage
33+
/libpeerconnection.log
34+
npm-debug.log
35+
testem.log
36+
/typings
37+
38+
# e2e
39+
/e2e/*.js
40+
/e2e/*.map
41+
42+
# System Files
43+
.DS_Store
44+
Thumbs.db

0 commit comments

Comments
 (0)