Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

chore: change deno to node with pnpm #55

Merged
merged 42 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2bf9e8c
initial setup with pnpm monorepo + tsup for comparison
peetzweg Apr 19, 2023
5df27ad
adds kitchen sink project as to monorepo as well.
peetzweg Apr 20, 2023
ac11bff
removes 'test' script
peetzweg Apr 20, 2023
ec0f5d4
removes dist folder
peetzweg Apr 20, 2023
87f60e6
uses stock nextjs tsconfig
peetzweg Apr 20, 2023
d2d85e7
fix typo
peetzweg Apr 20, 2023
bb03c4c
update code base to recent `main` state. Does not build right now, du…
peetzweg Apr 28, 2023
5dfa771
fixes build by fixing remaining typescript errors
peetzweg Apr 28, 2023
b34987c
Merge branch 'main' into pnpm-monorepo
peetzweg Apr 28, 2023
dca86fc
use valid package names
peetzweg Apr 28, 2023
cfc75ff
bumps code to recent useink version
peetzweg May 30, 2023
1a96a58
remove dist files and makes lib build work
peetzweg May 30, 2023
4822d99
fix imports
peetzweg May 30, 2023
b66fee3
use multiple entry points like deno version
peetzweg May 30, 2023
cc2088d
fix typo
peetzweg May 30, 2023
28cdfdf
adds `ws` as peer dependency
peetzweg May 30, 2023
e357d2d
makes individual export of used function as mass reexport does not se…
peetzweg May 30, 2023
b57491a
rename `core` package to `useink`
peetzweg May 30, 2023
bd8254a
Delete .nvmrc
peetzweg May 31, 2023
8d23338
migrates to version 1.4.4 of useink codebase
peetzweg Jun 7, 2023
4110cb1
adapts deno code to node
peetzweg Jun 7, 2023
8d5cdc0
removes eslint and prettier and adds rome
peetzweg Jun 7, 2023
7b6500a
formats code with rome
peetzweg Jun 7, 2023
9e8f0d4
adds linting step
peetzweg Jun 7, 2023
72fbb5c
adds workspace seetings and extension recommendations for vscode
peetzweg Jun 7, 2023
ab18203
resolves pnpm multiple versions issue
peetzweg Jun 7, 2023
6248626
adapts github workflows
peetzweg Jun 7, 2023
34ce417
chore: update to [email protected]
DoubleOTheven Jun 7, 2023
4ee32d2
Merge branch 'main' into pnpm-monorepo
peetzweg Jun 8, 2023
c575f89
merge release.yml file
peetzweg Jun 8, 2023
26d537a
manually resolving broken merges
peetzweg Jun 8, 2023
740d239
actually install dependencies, could be improved with caching
peetzweg Jun 8, 2023
e09a350
cleanup cspell config
peetzweg Jun 8, 2023
6ca49cc
use rome ci in ci lint job
peetzweg Jun 8, 2023
75260df
ignore gitignore for spellchecking
peetzweg Jun 8, 2023
c946748
make lint gh action work properly.
peetzweg Jun 8, 2023
071d27c
fix linter issues
peetzweg Jun 8, 2023
3d1709e
make sure to install dependencies during release action
peetzweg Jun 8, 2023
92b92ee
updates code to latest changes in useink 1.6.1
peetzweg Jun 12, 2023
0d9a156
Merge branch 'main' into pnpm-monorepo
peetzweg Jun 12, 2023
9d44d2a
fix: add ink! contract
DoubleOTheven Jun 12, 2023
1e7fc43
chore: update pnpm to latest version
DoubleOTheven Jun 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ labels: bug

## Bug Report

<!-- Please search useInk's issues in case one already exists for this bug. -->
<!-- Please search useink's issues in case one already exists for this bug. -->

### Current Behavior

Expand All @@ -32,7 +32,6 @@ Example:
<!--
Example:

- Deno: ... (deno --version)
- Node: ... (node -v)
- Browser: ...
- OS: ...
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.0
with:
deno-version: v1.x
- run: deno lint
- uses: pnpm/action-setup@v2
- run: pnpm install
- name: Lint code
run: pnpm format && pnpm lint:fix
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.0

- name: Set up pnpm
uses: pnpm/action-setup@v2

- name: Set up node
uses: actions/setup-node@v3
with:
deno-version: v1.x
cache: pnpm
node-version: 18

- name: Retrieve Version
if: startsWith(github.ref, 'refs/tags/')
id: get_tag_version
run: echo "tag_version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: pnpm install

- name: Build NPM Package
run: deno task dnt ${{steps.get_tag_version.outputs.tag_version}}
run: pnpm build

- run: npm pack
working-directory: "./target/npm"
working-directory: "./packages/useink"

- uses: actions/upload-artifact@v3
with:
name: package
path: "./target/npm/*.tgz"
path: "./packages/useink/*.tgz"

- uses: octokit/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/test.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/udd.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.env
benches.json
target
deno.lock
.vscode
benches.json
dist
node_modules
target
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["rome.rome"],
"unwantedRecommendations": []
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports.rome": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "rome.rome",
"[typescript]": {
"editor.defaultFormatter": "rome.rome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "rome.rome"
}
}
9 changes: 3 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ interactions relating to the project.
To develop on your machine, install the following (and please submit issues if
errors crop up)

- [Deno](https://deno.land/[email protected]/getting_started/installation)
- [dprint](https://dprint.dev/)
- [pnpm](https://pnpm.io/installation)

## Rules

Expand Down Expand Up @@ -84,8 +83,7 @@ issue)
We use the following tools to enforce linting rules, formatting and spell
checking

- [`deno lint`](https://deno.land/manual/tools/linter)
- [`dprint`](https://dprint.dev/)
- [`yarn lint`](https://rome.tools/)
- [`cspell`](https://cspell.org/)

We encourage adding the [recommended](.vscode/extensions.json) (or similar)
Expand All @@ -94,8 +92,7 @@ extensions to your IDE.
To run a project wide check you can use:

```bash
deno lint
dprint fmt # or dprint check
yarn lint
cspell "**/*"
```

Expand Down
75 changes: 0 additions & 75 deletions _tasks/dnt.ts

This file was deleted.

18 changes: 0 additions & 18 deletions _tasks/star.ts

This file was deleted.

18 changes: 0 additions & 18 deletions _tasks/udd.ts

This file was deleted.

2 changes: 0 additions & 2 deletions chains/mod.ts

This file was deleted.

3 changes: 0 additions & 3 deletions core/mod.ts

This file was deleted.

2 changes: 0 additions & 2 deletions core/substrate/mod.ts

This file was deleted.

1 change: 0 additions & 1 deletion core/types/result.ts

This file was deleted.

2 changes: 0 additions & 2 deletions core/types/talisman-connect-wallets.ts

This file was deleted.

1 change: 0 additions & 1 deletion core/types/unsub.ts

This file was deleted.

8 changes: 6 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
],
"dictionaries": ["project-words"],
"ignorePaths": [
"target",
"**/*.contract"
"dist",
"node_modules",
".next",
"**/*.contract",
"pnpm-lock.yaml",
".gitignore"
]
}
45 changes: 0 additions & 45 deletions deno.jsonc

This file was deleted.

1 change: 0 additions & 1 deletion deps/dnt.ts

This file was deleted.

1 change: 0 additions & 1 deletion deps/std/fs.ts

This file was deleted.

1 change: 0 additions & 1 deletion deps/std/path.ts

This file was deleted.

Loading