Skip to content

Commit 04ef9eb

Browse files
RO-132 - TypeScript refactor (#113)
* Only run webpack build steps in examples/demo build target * Refactor react-orcus/src into TypeScript * Enable lint format check and format remaining files * Delete additional unused files * Install webpack visualizer plugin
1 parent 759e396 commit 04ef9eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2608
-1991
lines changed

.github/workflows/issues-edited-to-jira.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,57 +17,57 @@ jobs:
1717

1818
# Steps represent a sequence of tasks that will be executed as part of the job
1919
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21-
- uses: actions/checkout@v2
22-
23-
- name: Apply netrc creds
24-
uses: little-core-labs/netrc-creds@v1
25-
with:
26-
creds: |
27-
[
28-
{
29-
"machine": "${{secrets.ATLASSIAN_API_ENDPOINT}}",
30-
"login": "${{secrets.ATLASSIAN_API_USER}}",
31-
"password": "${{secrets.ATLASSIAN_API_TOKEN}}"
32-
}
33-
]
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v2
22+
23+
- name: Apply netrc creds
24+
uses: little-core-labs/netrc-creds@v1
25+
with:
26+
creds: |
27+
[
28+
{
29+
"machine": "${{secrets.ATLASSIAN_API_ENDPOINT}}",
30+
"login": "${{secrets.ATLASSIAN_API_USER}}",
31+
"password": "${{secrets.ATLASSIAN_API_TOKEN}}"
32+
}
33+
]
34+
35+
# Runs a single command using the runners shell
36+
- name: Send edit request to JIRA API
37+
run: |-
38+
ISSUE_BODY="$(jq .issue.body ${{github.event_path}})"
39+
echo "Original ISSUE_BODY: $ISSUE_BODY"
40+
ISSUE_BODY='"'"$(echo "$ISSUE_BODY" | awk -F'</react-orcus-jira-ticket>' '{print $2}')"
41+
echo "ISSUE_BODY: $ISSUE_BODY"
3442
35-
# Runs a single command using the runners shell
36-
- name: Send edit request to JIRA API
37-
run: |-
38-
ISSUE_BODY="$(jq .issue.body ${{github.event_path}})"
39-
echo "Original ISSUE_BODY: $ISSUE_BODY"
40-
ISSUE_BODY='"'"$(echo "$ISSUE_BODY" | awk -F'</react-orcus-jira-ticket>' '{print $2}')"
41-
echo "ISSUE_BODY: $ISSUE_BODY"
42-
43-
JSON_DATA='{
44-
"fields": {
45-
"customfield_10030": "ignore",
46-
"summary": "'"$(echo "${{github.event.issue.title}}" | awk -F' - ' '{print $2}')"'",
47-
"description": {
48-
"version": 1,
49-
"type": "doc",
50-
"content": [
51-
{
52-
"type": "paragraph",
53-
"content": [
54-
{
55-
"type": "text",
56-
"text": '"$ISSUE_BODY"'
57-
}
58-
]
59-
}
60-
]
43+
JSON_DATA='{
44+
"fields": {
45+
"customfield_10030": "ignore",
46+
"summary": "'"$(echo "${{github.event.issue.title}}" | awk -F' - ' '{print $2}')"'",
47+
"description": {
48+
"version": 1,
49+
"type": "doc",
50+
"content": [
51+
{
52+
"type": "paragraph",
53+
"content": [
54+
{
55+
"type": "text",
56+
"text": '"$ISSUE_BODY"'
57+
}
58+
]
59+
}
60+
]
61+
}
6162
}
62-
}
63-
}'
64-
echo "JSON_DATA: $JSON_DATA"
65-
66-
ISSUE_ENDPOINT='https://${{secrets.ATLASSIAN_API_ENDPOINT}}/rest/api/3/issue/'"$(echo "${{github.event.issue.title}}" | awk -F' - ' '{print $1}')"
67-
echo "ISSUE_ENDPOINT: $ISSUE_ENDPOINT"
68-
69-
curl --netrc --request PUT \
70-
--url "$ISSUE_ENDPOINT" \
71-
--header 'Accept: application/json' \
72-
--header 'Content-Type: application/json' \
73-
--data "$JSON_DATA"
63+
}'
64+
echo "JSON_DATA: $JSON_DATA"
65+
66+
ISSUE_ENDPOINT='https://${{secrets.ATLASSIAN_API_ENDPOINT}}/rest/api/3/issue/'"$(echo "${{github.event.issue.title}}" | awk -F' - ' '{print $1}')"
67+
echo "ISSUE_ENDPOINT: $ISSUE_ENDPOINT"
68+
69+
curl --netrc --request PUT \
70+
--url "$ISSUE_ENDPOINT" \
71+
--header 'Accept: application/json' \
72+
--header 'Content-Type: application/json' \
73+
--data "$JSON_DATA"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Thumbs.db
4141
# Project
4242
*.stg
4343
webpack-stats.json
44+
.local.env

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
/dist
44
/coverage
5+
/examples

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
React Orcus
2-
====
1+
# React Orcus
32

43
[![npm](https://img.shields.io/npm/v/react-orcus)](https://www.npmjs.com/package/react-orcus) [![Codefresh build status](https://g.codefresh.io/api/badges/pipeline/joshuacwebdeveloper/react-orcus%2Fgithub-test-hook?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWU2NGIwZDk4ZTc3MDkyNWRlMzk4NTY4.1RyVgiNLIw7YYzkLCJLcJtK-p6zRYarO3sCielzfkP4&type=cf-1)](https://g.codefresh.io/public/accounts/joshuacwebdeveloper/pipelines/5e65bd75d7e4d02008a90182)
54

65
React library for creating an app with a windowed desktop interface.
76

8-
- [Installation/Setup](#installation)
9-
- [Examples](#examples)
10-
- [API](#api)
11-
- [Development](#development)
7+
- [Installation/Setup](#installation)
8+
- [Examples](#examples)
9+
- [API](#api)
10+
- [Development](#development)
1211

1312
![Demo GIF](demo.gif)
1413

1514
## <a name="installation"></a>Installation/Setup
15+
1616
Run:
1717

1818
`npm install react-orcus`
@@ -28,9 +28,10 @@ Include it in your HTML header:
2828
`<script type="text/javascript" src="./react-orcus/dist/react-orcus.min.js"></script>`
2929

3030
Then, in your React component:
31+
3132
```JavaScript
3233
var Desktop = (
33-
34+
3435
<Orcus.Desktop taskbar="right">
3536
<Orcus.App
3637
slug="file-manager"
@@ -54,7 +55,7 @@ var Desktop = (
5455
<p>Does anyone know how to build a tetris game?</p>
5556
</Orcus.App>
5657
</Orcus.Desktop>
57-
58+
5859
);
5960
```
6061
@@ -75,11 +76,11 @@ planned release.
7576
7677
#### Roadmap
7778
78-
- [x] Taskbar ([#53][i53])
79-
- [ ] Grid layout ([#104][i104])
80-
- [ ] Program menu ([#55][i55])
81-
- [ ] Themes ([#43][i43])
82-
- [ ] App Groups ([#48][i48])
79+
- [x] Taskbar ([#53][i53])
80+
- [ ] Grid layout ([#104][i104])
81+
- [ ] Program menu ([#55][i55])
82+
- [ ] Themes ([#43][i43])
83+
- [ ] App Groups ([#48][i48])
8384
8485
[i53]: https://github.com/vallerance/react-orcus/issues/53
8586
[i104]: https://github.com/vallerance/react-orcus/issues/104

codefresh/github-test-hook.yml

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

gulpfile.js

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

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getJestProjects } from '@nrwl/jest';
22

33
export default {
4-
projects: getJestProjects(),
4+
projects: getJestProjects(),
55
};

0 commit comments

Comments
 (0)