Skip to content

Commit

Permalink
add: example package to follow guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjjojo committed May 23, 2024
1 parent 194a387 commit 3837b07
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/__example__/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Example Package

Easily kickoff a package replicating this structure.
5 changes: 5 additions & 0 deletions packages/__example__/__test__/example.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { describe, it } from 'vitest'

describe('examplePackage test', () => {
it.skip("Implement tests")
});
19 changes: 19 additions & 0 deletions packages/__example__/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@hyperhub/example",
"private": true,
"version": "0.0.0",
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx src",
"test": "vitest",
"coverage": "vitest run --coverage",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@hyperhub/errors": "workspace:*",
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"typescript": "4.9.4",
"vitest": "1.6.0"
}
}
3 changes: 3 additions & 0 deletions packages/__example__/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const example = () => {
// Implement
};
8 changes: 0 additions & 8 deletions packages/serverless/__test__/handlers/example.test.js

This file was deleted.

0 comments on commit 3837b07

Please sign in to comment.