Skip to content

Commit

Permalink
Merge pull request #157 from input-output-hk/iogx-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored Jan 9, 2024
2 parents 4160a76 + 0793c25 commit c7a77c6
Show file tree
Hide file tree
Showing 47 changed files with 3,916 additions and 1,087 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2

[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_size = unset

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[{LICENSES/**,LICENSE}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
charset = unset
indent_style = unset
indent_size = unset
2 changes: 1 addition & 1 deletion .github/workflows/check-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Don't require changelogs for draft PRs:
if: github.event.pull_request.draft == false
with:
script: |
script: |
function shouldCheckChangelog() {
return !${{ contains(github.event.pull_request.labels.*.name, 'No Changelog Required') }}
}
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
steps:
- name: 📥 Checkout repository
uses: actions/[email protected]

- name: 🐣 Install Nix
uses: cachix/install-nix-action@v22
with:
Expand All @@ -25,17 +26,23 @@ jobs:
trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }}
substituters = ${{ env.SUBSTITUTERS }}
experimental-features = nix-command flakes
- name: 🔨 Build project
run: |
nix develop --show-trace --command bash -c "npm i && npm run build && treefmt jsdelivr-npm-importmap.js"
nix develop --show-trace --command bash -c "npm i && npm run build"
- name: 🧪 Run tests
- name: 🧪 Run npm tests
run: |
nix develop --show-trace --command bash -c "npm test"
- name: 🧪 Run nix test-spec
run: |
nix develop --show-trace --command bash -c "test-spec"
- name: 🏥 Check docs generation
run: |
nix develop --show-trace --command bash -c "npm --prefix ./doc/theme/ run build && npm run docs"
- name: 📝 Check formatting
run: |
nix develop --show-trace --command bash -c "treefmt --fail-on-change"
nix develop --show-trace --command bash -c "pre-commit run --all-files"
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@ test-dist
.local
yarn.lock


# nixago: ignore-linked-files
/lefthook.yml
/.editorconfig
/treefmt.toml
.pre-commit-config.yaml
60 changes: 30 additions & 30 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Tests",
"program": "${workspaceRoot}/node_modules/.bin/jest",
"cwd": "${workspaceRoot}",
"args": ["--i", "--config", "jest.config.js"],
},
{
"name": "Launch Extension (development)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "watch"
},
{
"name": "Launch Extension (production)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: compile"
}
]
}
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Tests",
"program": "${workspaceRoot}/node_modules/.bin/jest",
"cwd": "${workspaceRoot}",
"args": ["--i", "--config", "jest.config.js"],
},
{
"name": "Launch Extension (development)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "watch"
},
{
"name": "Launch Extension (production)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: compile"
}
]
}
18 changes: 9 additions & 9 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Copyright 2023 Input Output (Hong Kong) Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2 changes: 1 addition & 1 deletion doc/theme/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/theme/src/templates/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ export const footer = (
</div>
<div class="footer-copyright">© 2023 Input Output Global, Inc. All Rights Reserved.</div>
</div>
);
);
30 changes: 16 additions & 14 deletions doc/versioning-and-releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,47 +18,49 @@ Before version 1, the TS-SDK adheres to beta rules:

1. **Candidate Commit:**

- Identify a candidate commit on the `main` branch.
- Identify a candidate commit on the `main` branch.

2. **CI Checks:**

- Ensure that all Continuous Integration (CI) checks pass on the candidate commit.
- Ensure that all Continuous Integration (CI) checks pass on the candidate commit.

3. **Version Number Update:**

- Update version numbers in project metadata.
- Update version numbers in project metadata.

4. **QA Approval:**
- Obtain approval from the Quality Assurance (QA) team.

- Obtain approval from the Quality Assurance (QA) team.

### Release Checklist:

1. **Release Notes:**

- Generate release notes from the `changelog.d` folder(s).
- This can be done using `scriv collect` from the nix shell.
- Generate release notes from the `changelog.d` folder(s).
- This can be done using `scriv collect` from the nix shell.

2. **Release Tag:**

- Use git to create and push a release tag.
- `git tag -a 0.3.0-beta -m "Release v0.3.0-beta"`
- `git push --tags`
- Use git to create and push a release tag.
- `git tag -a 0.3.0-beta -m "Release v0.3.0-beta"`
- `git push --tags`

3. **Packages Build and Publish:**

- Build and publish packages from the release tag.
- `npm publish --workspaces` (for the moment @hrajchert and @nhenin have publish access)
- Build and publish packages from the release tag.
- `npm publish --workspaces` (for the moment @hrajchert and @nhenin have publish access)

4. **GitHub Release:**

- Publish release(s) on GitHub along with release notes from the collected changelog.
- Publish release(s) on GitHub along with release notes from the collected changelog.

5. **Documentation:**

- Manually trigger the `deploy docs` github action
- Manually trigger the `deploy docs` github action

6. **Announcement:**
- Contact the marketing and devrel team to announce the release.

- Contact the marketing and devrel team to announce the release.

## Note:

Expand Down
2 changes: 1 addition & 1 deletion examples/get-my-contract-ids-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/payouts-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-client-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/run-lite/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/survey-workshop/custodian/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/survey-workshop/participant/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/vesting-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/wallet-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
Loading

0 comments on commit c7a77c6

Please sign in to comment.