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

Commit

Permalink
chore: change deno to node with pnpm (#55)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Ruberti <[email protected]>
  • Loading branch information
peetzweg and DoubleOTheven authored Jun 12, 2023
1 parent 37ba1e9 commit 8c78768
Show file tree
Hide file tree
Showing 187 changed files with 10,959 additions and 880 deletions.
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

0 comments on commit 8c78768

Please sign in to comment.