Skip to content

Commit 0189c95

Browse files
Major architectural refactor and improvements (#8)
* Refactored folder structure * Refactored resource into resource controller and resource. This separates the library core logic from the interface * Fixed resource-controller tests and added quality of life improvements to settings. Added defaults to make it easier to write tests * Modified isSame method to use new equals function. Fixed tests. Deleted unused classes * Improved settings interface for stateful parameters. Removed the individual types and made it mandatory to return type array for ArrayStatefulParameter * Added descriptive comments to resource.ts * Added descriptive comments to change-set.ts, plan.ts, plan-types.ts and resource-settings.ts * Added additional links to previous comments and added documentation to stateful-parameter.ts
1 parent cdd9aa3 commit 0189c95

Some content is hidden

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

44 files changed

+9889
-2452
lines changed

.eslintrc.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99
"warn",
1010
"always"
1111
],
12-
"perfectionist/sort-classes": [
13-
"off"
14-
],
12+
"perfectionist/sort-classes": "off",
13+
"perfectionist/sort-interfaces": "off",
14+
"perfectionist/sort-enums": "off",
15+
"perfectionist/sort-objects": "off",
16+
"perfectionist/sort-object-types": "off",
17+
"unicorn/no-array-reduce": "off",
18+
"unicorn/no-array-for-each": "off",
19+
"unicorn/prefer-object-from-entries": "off",
20+
"unicorn/prefer-type-error": "off",
1521
"quotes": [
1622
"error",
1723
"single"
18-
]
24+
],
25+
"no-await-in-loop": "off"
1926
},
2027
"ignorePatterns": [
2128
"*.test.ts"

.github/workflows/release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Release
5+
6+
on: workflow_dispatch
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
cache: 'npm'
17+
- run: npm ci
18+
- run: tsc
19+
- run: npm publish
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Unit tests
5+
6+
on: [ push ]
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
cache: 'npm'
17+
- run: npm ci
18+
- run: tsc
19+
- run: npm run test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/.nyc_output
66
/dist
77
/lib
8-
/package-lock.json
98
/tmp
109
/yarn.lock
1110
node_modules

0 commit comments

Comments
 (0)