Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anthony ROZEN
Not Alone
Commits
2dc82259
Commit
2dc82259
authored
Sep 29, 2020
by
Gerson Sunyé
Browse files
Add new module 'core' containing thrift definition files
parent
36571200
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
2dc82259
...
...
@@ -8,6 +8,7 @@ target
# dependencies
node_modules
node
# IDEs and editors
/.idea
...
...
@@ -17,6 +18,8 @@ node_modules
*.launch
.settings/
*.sublime-workspace
.java-version
*.iml
# IDE - VSCode
.vscode/*
...
...
README.adoc
View file @
2dc82259
...
...
@@ -23,4 +23,10 @@ service. Après avoir lancé un SOS, le capitaine ordonne l’évacuation du vai
l’inévitable crash.
Sains et saufs, vous entamez l’exploration des environs lorsque vous entendez les cris
d’agonie de votre capitaine. Au loin, vous distinguez une silhouette qui vous observe.
Vous n’êtes pas seul …
\ No newline at end of file
Vous n’êtes pas seul...
== Project Layout
The current source code organization is based on the following article:
https://frakton.com/utilizing-maven-front-end-plugin-for-angular-spring-boot/
\ No newline at end of file
not-alone-core/pom.xml
0 → 100644
View file @
2dc82259
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
not-alone
</artifactId>
<groupId>
fr.univnantes.alma
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
not-alone-core
</artifactId>
<name>
Not Alone Core
</name>
<build>
<plugins>
<plugin>
<groupId>
org.apache.thrift.tools
</groupId>
<artifactId>
maven-thrift-plugin
</artifactId>
<configuration>
<generator>
java
</generator>
</configuration>
<executions>
<execution>
<id>
thrift-compile
</id>
<phase>
generate-sources
</phase>
<goals>
<goal>
compile
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<executions>
<execution>
<id>
build-helper-add-source
</id>
<phase>
generate-sources
</phase>
<goals>
<goal>
add-source
</goal>
</goals>
<configuration>
<sources>
<source>
${project.build.directory}/generated-sources/thrift/
</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>
org.apache.thrift
</groupId>
<artifactId>
libthrift
</artifactId>
</dependency>
</dependencies>
</project>
not-alone-core/src/main/thrift/common.thrift
0 → 100644
View file @
2dc82259
namespace java fr.univnantes.alma.core
namespace js core
exception InvalidOperationException {
1: i32 code,
2: string description
}
not-alone-core/src/main/thrift/game-client.thrift
0 → 100644
View file @
2dc82259
include "common.thrift"
service GameClientService {
bool ping() throws (1:common.InvalidOperationException e)
}
not-alone-core/src/main/thrift/game-server.thrift
0 → 100644
View file @
2dc82259
include "common.thrift"
struct CrossPlatformResource {
1: i32 id,
2: string name,
3: optional string salutation
}
service GameServerService {
CrossPlatformResource get(1:i32 id) throws (1:common.InvalidOperationException e),
void save(1:CrossPlatformResource resource) throws (1:common.InvalidOperationException e),
list <CrossPlatformResource> getList() throws (1:common.InvalidOperationException e),
bool ping() throws (1:common.InvalidOperationException e)
}
not-alone-web/package-lock.json
View file @
2dc82259
This diff is collapsed.
Click to expand it.
not-alone-web/package.json
View file @
2dc82259
...
...
@@ -7,42 +7,49 @@
"build"
:
"ng build"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
"e2e"
:
"ng e2e"
"e2e"
:
"ng e2e"
,
"codegen"
:
"./node_modules/.bin/thrift-typescript --sourceDir ../not-alone-core/src/main/thrift/ --outDir ./target/generated-sources/thrift/"
},
"private"
:
true
,
"dependencies"
:
{
"@angular/animations"
:
"^6.1.0"
,
"@angular/common"
:
"^6.1.0"
,
"@angular/compiler"
:
"^6.1.0"
,
"@angular/core"
:
"^6.1.0"
,
"@angular/forms"
:
"^6.1.0"
,
"@angular/http"
:
"^6.1.0"
,
"@angular/platform-browser"
:
"^6.1.0"
,
"@angular/platform-browser-dynamic"
:
"^6.1.0"
,
"@angular/router"
:
"^6.1.0"
,
"core-js"
:
"^2.5.4"
,
"rxjs"
:
"~6.2.0"
,
"zone.js"
:
"~0.8.26"
"@angular/animations"
:
"^10.1.3"
,
"@angular/common"
:
"^10.1.3"
,
"@angular/compiler"
:
"^10.1.3"
,
"@angular/core"
:
"^10.1.3"
,
"@angular/forms"
:
"^10.1.3"
,
"@angular/platform-browser"
:
"^10.1.3"
,
"@angular/platform-browser-dynamic"
:
"^10.1.3"
,
"@angular/router"
:
"^10.1.3"
,
"@creditkarma/thrift-client"
:
"^0.16.1"
,
"@creditkarma/thrift-server-core"
:
"^0.16.1"
,
"@creditkarma/thrift-typescript"
:
"^3.7.6"
,
"@ngtools/webpack"
:
"^10.1.3"
,
"@types/thrift"
:
"^0.10.10"
,
"core-js"
:
"^3.6.5"
,
"marked"
:
"^1.2.0"
,
"rxjs"
:
"~6.6.3"
,
"thrift"
:
"^0.13.0"
,
"zone.js"
:
"^0.11.1"
},
"devDependencies"
:
{
"@angular-devkit/build-angular"
:
"
~
0.
8.0
"
,
"@angular/cli"
:
"~
6.2.5
"
,
"@angular/compiler-cli"
:
"
^6
.1.
0
"
,
"@angular/language-service"
:
"^
6
.1.
0
"
,
"@types/jasmine"
:
"~
2.8.8
"
,
"@types/jasminewd2"
:
"~2.0.
3
"
,
"@types/node"
:
"~
8.9.4
"
,
"codelyzer"
:
"
~4.3
.0"
,
"jasmine-core"
:
"~
2.99.1
"
,
"jasmine-spec-reporter"
:
"~
4.2.1
"
,
"karma"
:
"
~3.0.0
"
,
"karma-chrome-launcher"
:
"~
2.2
.0"
,
"karma-coverage-istanbul-reporter"
:
"~
2
.0.
1
"
,
"karma-jasmine"
:
"~
1.1.2
"
,
"karma-jasmine-html-reporter"
:
"^
0.2.2
"
,
"protractor"
:
"
~5.4
.0"
,
"ts-node"
:
"~
7
.0.0"
,
"tslint"
:
"~5.
11.0
"
,
"typescript"
:
"~
2.9.2
"
"@angular-devkit/build-angular"
:
"
^
0.
1001.3
"
,
"@angular/cli"
:
"~
10.1.3
"
,
"@angular/compiler-cli"
:
"
~10
.1.
3
"
,
"@angular/language-service"
:
"^
10
.1.
3
"
,
"@types/jasmine"
:
"~
3.5.14
"
,
"@types/jasminewd2"
:
"~2.0.
8
"
,
"@types/node"
:
"~
14.11.2
"
,
"codelyzer"
:
"
^6.0
.0"
,
"jasmine-core"
:
"~
3.6.0
"
,
"jasmine-spec-reporter"
:
"~
6.0.0
"
,
"karma"
:
"
^5.2.3
"
,
"karma-chrome-launcher"
:
"~
3.1
.0"
,
"karma-coverage-istanbul-reporter"
:
"~
3
.0.
3
"
,
"karma-jasmine"
:
"~
4.0.1
"
,
"karma-jasmine-html-reporter"
:
"^
1.5.4
"
,
"protractor"
:
"
^7.0
.0"
,
"ts-node"
:
"~
9
.0.0"
,
"tslint"
:
"~5.
20.1
"
,
"typescript"
:
"~
4.0.3
"
}
}
not-alone-web/pom.xml
View file @
2dc82259
...
...
@@ -45,6 +45,16 @@
<arguments>
run build
</arguments>
</configuration>
</execution>
<execution>
<id>
code geneation
</id>
<phase>
generate-sources
</phase>
<goals>
<goal>
npm
</goal>
</goals>
<configuration>
<arguments>
run codegen
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...
...
not-alone-web/tsconfig.json
View file @
2dc82259
...
...
@@ -5,17 +5,23 @@
"outDir"
:
"./dist/out-tsc"
,
"sourceMap"
:
true
,
"declaration"
:
false
,
"module"
:
"
es2015
"
,
"module"
:
"
ES6
"
,
"moduleResolution"
:
"node"
,
"emitDecoratorMetadata"
:
true
,
"experimentalDecorators"
:
true
,
"target"
:
"
es
5"
,
"target"
:
"
ES
5"
,
"typeRoots"
:
[
"node_modules/@types"
],
"lib"
:
[
"es2017"
,
"dom"
]
],
"paths"
:
{
"core-js/es7/reflect"
:
[
"node_modules/core-js/proposals/reflect-metadata"
]
}
},
"include"
:
[
"target/generated-sources/thrift//**/*"
,
"src/**/*"
]
}
pom.xml
View file @
2dc82259
...
...
@@ -21,6 +21,7 @@
<module>
not-alone-doc
</module>
<module>
not-alone-server
</module>
<module>
not-alone-web
</module>
<module>
not-alone-core
</module>
</modules>
<build>
...
...
@@ -46,6 +47,16 @@
<artifactId>
maven-site-plugin
</artifactId>
<version>
3.9.1
</version>
</plugin>
<plugin>
<groupId>
org.apache.thrift.tools
</groupId>
<artifactId>
maven-thrift-plugin
</artifactId>
<version>
0.1.11
</version>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<version>
3.2.0
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
...
...
@@ -62,7 +73,11 @@
<artifactId>
asciidoctorj-pdf
</artifactId>
<version>
1.5.3
</version>
</dependency>
<dependency>
<groupId>
org.apache.thrift
</groupId>
<artifactId>
libthrift
</artifactId>
<version>
0.13.0
</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment