forked from loafle/openapi-generator-original
add ci test for typescript angular
This commit is contained in:
parent
1e80455d82
commit
f7ed6f040d
1
.gitignore
vendored
1
.gitignore
vendored
@ -118,6 +118,7 @@ samples/client/petstore/python/.venv/
|
|||||||
# ts
|
# ts
|
||||||
samples/client/petstore/typescript-node/npm/node_modules
|
samples/client/petstore/typescript-node/npm/node_modules
|
||||||
samples/client/petstore/typescript-node/**/typings
|
samples/client/petstore/typescript-node/**/typings
|
||||||
|
samples/client/petstore/typescript-angular/**/typings
|
||||||
samples/client/petstore/typescript-fetch/**/dist/
|
samples/client/petstore/typescript-fetch/**/dist/
|
||||||
samples/client/petstore/typescript-fetch/**/typings
|
samples/client/petstore/typescript-fetch/**/typings
|
||||||
|
|
||||||
|
13
pom.xml
13
pom.xml
@ -438,6 +438,18 @@
|
|||||||
<module>samples/server/petstore/jaxrs</module>
|
<module>samples/server/petstore/jaxrs</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>typescript-angular-client</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>java</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<modules>
|
||||||
|
<module>samples/client/petstore/typescript-angular/npm</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>typescript-node-npm-client</id>
|
<id>typescript-node-npm-client</id>
|
||||||
<activation>
|
<activation>
|
||||||
@ -483,6 +495,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<modules>
|
<modules>
|
||||||
|
<module>samples/client/petstore/typescript-angular</module>
|
||||||
<module>samples/client/petstore/typescript-node/npm</module>
|
<module>samples/client/petstore/typescript-node/npm</module>
|
||||||
<module>samples/client/petstore/android/volley</module>
|
<module>samples/client/petstore/android/volley</module>
|
||||||
<module>samples/client/petstore/clojure</module>
|
<module>samples/client/petstore/clojure</module>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "petstore-typescript-node-sample",
|
"name": "petstore-typescript-node-sample",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"repository": "GIT_USER_ID/GIT_REPO_ID",
|
||||||
"description": "Sample of generated TypeScript petstore client",
|
"description": "Sample of generated TypeScript petstore client",
|
||||||
"main": "api.js",
|
"main": "api.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -8,8 +9,8 @@
|
|||||||
"test": "tsc --target ES6 && node client.js",
|
"test": "tsc --target ES6 && node client.js",
|
||||||
"clean": "rm -Rf node_modules/ typings/ *.js"
|
"clean": "rm -Rf node_modules/ typings/ *.js"
|
||||||
},
|
},
|
||||||
"author": "Mads M. Tandrup",
|
"author": "Swagger Codegen Contributors & Mads M. Tandrup",
|
||||||
"license": "Apache 2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"request": "^2.60.0",
|
"request": "^2.60.0",
|
||||||
"angular": "^1.4.3"
|
"angular": "^1.4.3"
|
||||||
|
59
samples/client/petstore/typescript-angular/pom.xml
Normal file
59
samples/client/petstore/typescript-angular/pom.xml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.wordnik</groupId>
|
||||||
|
<artifactId>TypeScriptAngularPestoreClientTests</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<name>Typescript Angular Swagger Petstore Client</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>npm-install</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>install</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user