Skip to content

Commit a882a7a

Browse files
authored
update setup (#23)
1 parent e93b84d commit a882a7a

25 files changed

+4491
-1140
lines changed

.abapgit.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/build_web.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
- run: npm ci
2020
- run: npm run clone
21-
- run: npm run unit
21+
- run: npm run build && node output/index.mjs
2222
- run: npm run webpack:build
2323
- name: deploy to web-abap2ui5-samples
2424
uses: peaceiris/actions-gh-pages@v4
@@ -30,4 +30,4 @@ jobs:
3030
user_email: 'github-actions[bot]@users.noreply.github.com'
3131
publish_branch: main
3232
force_orphan: true
33-
publish_dir: ./build
33+
publish_dir: ./build

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
node_modules
21
downport
2+
node_modules
33
abap2UI5
44
abap2UI5-samples
5-
output
6-
src
7-
build

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 oblomov
3+
Copyright (c) 2024 abap2UI5
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,54 @@
1-
# abap2UI5-web
1+
## abap2UI5-Setup
22

3-
Run abap2UI5 with [**open-abap**](https://github.com/open-abap) on Node.js
3+
### Functionality
4+
* Downporting with [abaplint](https://abaplint.org/)
5+
* Transpiling to JS with [abaplint/transpiler](https://github.com/abaplint/transpiler)
6+
* Running on Node.js with [open-abap](https://github.com/open-abap/express-icf-shim)
7+
* Service exposing via [express-icf-shim](https://github.com/open-abap/express-icf-shim)
8+
* Browser Tests with [Playwright](https://playwright.dev/)
9+
* Webpacking, Unit Testing...
410

5-
Live Demo:<br>
6-
https://abap2ui5.github.io/web-abap2ui5-samples/
7-
8-
## Test
11+
### Tasks
12+
#### Downport & Transpile
13+
```
14+
npm run init
15+
npm run build
16+
```
17+
#### Run Unit Tests
918
```
10-
npm run clone
1119
npm run unit
20+
```
21+
#### Run Webservice
22+
```
1223
npm run express
1324
```
25+
#### Run Playwright Tests
26+
```
27+
npm run init_play
28+
npx playwright install --with-deps && npm i
29+
npx playwright test
30+
```
31+
32+
#### Webpack Build Strategy
33+
34+
1. Clone repositories into /src/
35+
2. Downport /src/ into /downport/
36+
3. Transpile with express-icf-shim into /output/
37+
4. Webpack backend + frontend + database into folder build
38+
39+
```
40+
npm run webpack:build
41+
```
42+
### Overview
43+
<img width="800" alt="image" src="https://github.com/user-attachments/assets/97cc8b91-4a0b-4f22-9501-6655117c9c24">
44+
45+
### Demo
46+
#### Running on Node.js
47+
![306716361-7d0fa7e5-2c5b-46c4-b2e8-0ffd70350370](https://github.com/user-attachments/assets/a170cc1e-2521-4f86-b59e-d852bbd656ee)
1448

15-
## Build Strategy
49+
#### Backend Runnning in Browser
50+
[https://abap2ui5.github.io/web-abap2ui5-samples/](https://abap2ui5.github.io/web-abap2ui5-samples/)
1651

17-
1. Clone repositories into `/src/`
18-
2. Downport `/src/` into `/downport/`
19-
3. Transpile with [express-icf-shim](https://github.com/open-abap/express-icf-shim) into `/output/`
20-
4. Webpack backend + frontend + database into folder `build`
2152

22-
## Demo
23-
![gif_open_abap](https://github.com/abap2UI5/abap2UI5-web/assets/102328295/7d0fa7e5-2c5b-46c4-b2e8-0ffd70350370)
53+
### Credits
54+
* abaplint, open-abap, express-icf-shim etc. all by [larshp](https://github.com/larshp)

abaplint.jsonc

Lines changed: 0 additions & 252 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

abap_transpile.json renamed to ci/abap_transpile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ignoreSyntaxCheck": false,
1616
"addFilenames": true,
1717
"addCommonJS": true,
18-
"extraSetup": "../test/setup.mjs",
18+
"extraSetup": "../ci/setup.mjs",
1919
"unknownTypes": "runtimeError",
2020
"skipReposrc": true,
2121
"keywords": ["return", "in", "class", "for", "delete", "var"],

0 commit comments

Comments
 (0)