diff --git a/pom.xml b/pom.xml index 32d9db1ed10..408d7431cb2 100644 --- a/pom.xml +++ b/pom.xml @@ -41,6 +41,7 @@ assembly selenium dockerfiles + typescript-dto scm:git:git@github.com:eclipse/che.git diff --git a/typescript-dto/.gitignore b/typescript-dto/.gitignore new file mode 100644 index 00000000000..1c535215970 --- /dev/null +++ b/typescript-dto/.gitignore @@ -0,0 +1 @@ +index.d.ts \ No newline at end of file diff --git a/typescript-dto/Dockerfile b/typescript-dto/Dockerfile new file mode 100644 index 00000000000..59028c58155 --- /dev/null +++ b/typescript-dto/Dockerfile @@ -0,0 +1,35 @@ +# Copyright (c) 2018 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation + +### +# Builder Image +# +#FROM maven:3.3-jdk-8 as builder + +#ADD ./dto-pom.xml /generator/pom.xml + +#RUN cd /generator && mvn -U -DskipTests=true -Dfindbugs.skip=true -Dskip-validate-sources install + +### +# Publish image +# +FROM node:6.11.2 + +RUN npm i -g yarn@1.9.4 + +ADD package.json /che/package.json + +COPY ./index.d.ts /che/index.d.ts + +ARG NPM_AUTH_TOKEN + +ARG CHE_VERSION + +RUN cd /che && yarn publish --registry=https://registry.npmjs.org/ --no-git-tag-version --new-version ${CHE_VERSION} \ No newline at end of file diff --git a/typescript-dto/dto-pom.xml b/typescript-dto/dto-pom.xml new file mode 100644 index 00000000000..da3f5966327 --- /dev/null +++ b/typescript-dto/dto-pom.xml @@ -0,0 +1,112 @@ + + + + + 4.0.0 + + maven-depmgt-pom + org.eclipse.che.depmgt + 6.17.0-SNAPSHOT + + dts-dto-typescript + pom + Che TypeScript DTO + + 6.17.0-SNAPSHOT + + + + ossrh + central public releases + https://oss.sonatype.org/content/repositories/releases/ + + + ossrh-snapshots + central public snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + + + codenvy-public-repo + ossrh releases + https://oss.sonatype.org/content/repositories/releases/ + + + ossrh-snapshots + ossrh snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + + + + org.eclipse.che.core + che-core-typescript-dto-maven-plugin + ${che.version} + + + + true + + + build + + + + + + org.eclipse.che.core + che-core-api-factory-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-project-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-project-templates-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-ssh-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-system-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-user-shared + ${che.version} + + + org.eclipse.che.core + che-core-api-workspace-shared + ${che.version} + + + + false + + + + + diff --git a/typescript-dto/package.json b/typescript-dto/package.json new file mode 100644 index 00000000000..f45ba887e47 --- /dev/null +++ b/typescript-dto/package.json @@ -0,0 +1,7 @@ +{ + "name": "@eclipse-che/api", + "version": "6.16.0", + "description": "Eclipse Che DTO API", + "types": "index.d.ts", + "license": "EPL-2.0" +} diff --git a/typescript-dto/pom.xml b/typescript-dto/pom.xml new file mode 100644 index 00000000000..97c5ad746fc --- /dev/null +++ b/typescript-dto/pom.xml @@ -0,0 +1,96 @@ + + + + 4.0.0 + + che-parent + org.eclipse.che + 6.16.0-SNAPSHOT + ../pom.xml + + org.eclipse.che.typescript.dto + che-typescript-dto + pom + Che TypeScript DTO Generate and Publish + 2018 + + + + maven-clean-plugin + + + + ${basedir} + + index.d.ts + + + + + + + + + + codenvy-release + + + + maven-antrun-plugin + + + generate-dts + generate-sources + + run + + + + + + + + + + + + build-image + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + + + +