File tree Expand file tree Collapse file tree 12 files changed +122
-13
lines changed
java/io/dirigible/samples
resources/META-INF/dirigible/custom-api Expand file tree Collapse file tree 12 files changed +122
-13
lines changed Original file line number Diff line number Diff line change 9797
9898 - [/services/web/ide/](http://localhost:8080/services/web/ide/) - Web IDE
9999
100- - name : Push Release Version
101- run : git push
100+ - name : Maven Set Snapshot Version
101+ run : |
102+ mvn versions:set -DnewVersion=${{ inputs.snapshot-version }}
103+ git add .
104+ git commit -m "version set to ${{ inputs.snapshot-version }} for development"
105+ git push
Original file line number Diff line number Diff line change 1+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+
6+ <parent >
7+ <groupId >io.dirigible.samples</groupId >
8+ <artifactId >custom-stack-parent</artifactId >
9+ <version >1.0.0-SNAPSHOT</version >
10+ <relativePath >../pom.xml</relativePath >
11+ </parent >
12+
13+ <name >custom - stack - apis</name >
14+ <artifactId >custom-stack-apis</artifactId >
15+ <packaging >jar</packaging >
16+
17+ </project >
Original file line number Diff line number Diff line change 1+ package io .dirigible .samples ;
2+
3+ public class MyFacade {
4+
5+ public static String greet () {
6+ return "Hello, welcome to my custom Eclipse Dirigible stack!" ;
7+ }
8+
9+ public int add (int a , int b ) {
10+ return a + b ;
11+ }
12+
13+ public int multiply (int a , int b ) {
14+ return a * b ;
15+ }
16+
17+ public String customMethod (String input ) {
18+ // Your custom logic here
19+ return "Processed input: " + input ;
20+ }
21+
22+ }
Original file line number Diff line number Diff line change 1+ const MyFacade = Java . type ( "io.dirigible.samples.MyFacade" ) ;
2+
3+ export class MyApi {
4+
5+ private facadeInstance = new MyFacade ( ) ;
6+
7+ public static greet ( ) : string {
8+ return MyFacade . greet ( ) ;
9+ }
10+
11+ public add ( a : number , b : number ) : number {
12+ return this . facadeInstance . add ( a , b ) ;
13+ }
14+
15+ public multiply ( a : number , b : number ) : number {
16+ return this . facadeInstance . multiply ( a , b ) ;
17+ }
18+
19+ public customMethod ( input : string ) : string {
20+ return this . facadeInstance . customMethod ( input ) ;
21+ }
22+ }
Original file line number Diff line number Diff line change 1+ {
2+ "guid" : " custom-stack" ,
3+ "repository" : {
4+ "type" : " git" ,
5+ "branch" : " master" ,
6+ "url" : " https://github.com/dirigiblelabs/sample-custom-stack.git"
7+ },
8+ "actions" : [
9+ {
10+ "name" : " Build TypeScript" ,
11+ "commands" : [
12+ {
13+ "os" : " unix" ,
14+ "command" : " tsc"
15+ },
16+ {
17+ "os" : " windows" ,
18+ "command" : " cmd /c tsc"
19+ }
20+ ],
21+ "registry" : " true"
22+ }
23+ ]
24+ }
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "module" : " ESNext" ,
4+ "target" : " ES6" ,
5+ "moduleResolution" : " Node" ,
6+ "lib" : [
7+ " ESNext" ,
8+ " DOM"
9+ ]
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ declare const dirigibleRequire : ( path : string ) => any ;
2+
3+ declare class Java {
4+ static type ( path : string ) : any ;
5+ }
6+
7+ declare const __context : any ;
8+ declare const context : any ;
9+ declare const __engine : any ;
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.dirigible.samples</groupId >
88 <artifactId >custom-stack-parent</artifactId >
9- <version >0 .0.1 </version >
9+ <version >1 .0.0-SNAPSHOT </version >
1010 <relativePath >../pom.xml</relativePath >
1111 </parent >
1212
1616
1717
1818 <dependencies >
19+ <dependency >
20+ <groupId >io.dirigible.samples</groupId >
21+ <artifactId >custom-stack-apis</artifactId >
22+ <version >1.0.0-SNAPSHOT</version >
23+ </dependency >
1924 <dependency >
2025 <groupId >io.dirigible.samples</groupId >
2126 <artifactId >custom-stack-branding</artifactId >
22- <version >0 .0.1 </version >
27+ <version >1 .0.0-SNAPSHOT </version >
2328 </dependency >
2429
2530 <!-- Core -->
201206 </resources >
202207 </build >
203208
204- <properties >
205- <license .header.location>../licensing-header.txt</license .header.location>
206- </properties >
207-
208209</project >
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments