Skip to content

Commit

Permalink
refactor(core): move to deno 2 and refactor usages
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 10, 2024
1 parent 6b6bbb8 commit ca0cf82
Show file tree
Hide file tree
Showing 15 changed files with 547 additions and 518 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.x]
deno-version: [2.x]

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🦕 Setup Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}

- name: ⚡ Run Tests
working-directory: packages/core
run: |
cd packages/core
deno task test
env:
CI: true
Expand All @@ -41,14 +41,22 @@ jobs:
if: startsWith(github.ref, 'refs/tags/hyper@')
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🦕 Setup Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: ✨ Publish to JSR
working-directory: packages/core
run: |
deno publish --allow-slow-types
# - name: 🥚 Setup Eggs CLI
# run: |
Expand Down
18 changes: 16 additions & 2 deletions packages/core/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
# hyper core

<h1 align="center">⚡️ core ⚡️</h1>
<p align="center">
The core package handles all of the business logic for the hyper63 service framework. Every
implementation of hyper63 should require the core package.

The core package validates the config schema and plugin schemas

</p>
<p align="center">
<a href="https://nest.land/package/hyper"><img src="https://nest.land/badge.svg" alt="Nest Badge" /></a>
<a href="https://jsr.io/@hyper63/core"><img src="https://jsr.io/badges/@hyper63/core" alt="" /></a>
<a href="https://github.com/hyper63/hyper/actions/workflows/core.yml"><img src="https://github.com/hyper63/hyper/actions/workflows/core.yml/badge.svg" alt="Test" /></a>
</p>

<!-- toc -->

- [Testing](#testing)
- [License](#license)

<!-- tocstop -->

## Testing

```
Expand Down
53 changes: 53 additions & 0 deletions packages/core/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@hyper63/core",
"version": "4.3.3",
"exports": "./mod.ts",
"tasks": {
"test": "deno lint && deno fmt --check && deno test -A --no-check",
"cache": "deno install --entrypoint mod.ts"
},
"imports": {
"ramda": "npm:[email protected]",
"crocks": "npm:[email protected]",
"cuid": "npm:cuid@3",
"ms": "npm:ms@2",
"zod": "npm:[email protected]",
"@hyper63/port-data": "jsr:@hyper63/[email protected]",
"@hyper63/port-cache": "jsr:@hyper63/[email protected]",
"@hyper63/port-storage": "jsr:@hyper63/[email protected]",
"@hyper63/port-queue": "jsr:@hyper63/[email protected]",
"@hyper63/port-search": "jsr:@hyper63/[email protected]",
"@hyper63/port-crawler": "jsr:@hyper63/[email protected]",
"@hyper63/port-hooks": "jsr:@hyper63/[email protected]",
"@hyper63/utils": "jsr:@hyper63/[email protected]/mod.js",
"@std/assert": "jsr:@std/assert@1",
"@std/encoding": "jsr:@std/encoding@1",
"@std/path": "jsr:@std/path@1",
"@std/fs": "jsr:@std/fs@1"
},
"fmt": {
"include": [
"./"
],
"lineWidth": 100,
"singleQuote": true,
"semiColons": false
},
"lint": {
"rules": {
"exclude": [
"no-slow-types"
]
}
},
"publish": {
"include": [
"./*",
"./lib/**/*",
"./utils/**/*"
],
"exclude": [
"**/*.test.ts"
]
}
}
12 changes: 0 additions & 12 deletions packages/core/deno.jsonc

This file was deleted.

Loading

0 comments on commit ca0cf82

Please sign in to comment.