-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose types without build steps and switch to vitest (#5)
- Loading branch information
Showing
7 changed files
with
2,202 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# [starter-libesm](https://github.com/hyf0/starter-libesm) | ||
|
||
Pure ESM library starter in JavaScript with type checking! | ||
Pure ESM library starter in JavaScript with type checking and no build steps! | ||
|
||
- Ship ESM only | ||
- No build steps | ||
- Only JavaScript | ||
- With type checking | ||
- Strong type checking still | ||
- Generate [documentation](https://hyf0.github.io/starter-libesm/) automatically by [TypeDoc](https://github.com/TypeStrong/typedoc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './src/index.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
{ | ||
"name": "starter-libesm", | ||
"version": "0.0.1", | ||
"description": "Pure ESM library starter in JavaScript with type checking!", | ||
"type": "module", | ||
"exports": "./src/index.js", | ||
"version": "0.0.0", | ||
"description": "Pure ESM library starter in JavaScript with type checking!", | ||
"license": "MIT", | ||
"keywords": [], | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"pnpm": ">=8.0.0" | ||
"author": "__author__", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./src/index.js", | ||
"default": "./src/index.js" | ||
} | ||
}, | ||
"author": "", | ||
"files": [ | ||
"src", | ||
"index.d.ts" | ||
], | ||
"keywords": [], | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"test": "node --test tests/*.js", | ||
"test": "vitest --run", | ||
"type-check": "tsc --noEmit", | ||
"doc:build": "typedoc src/index.js", | ||
"doc:serve": "serve ./docs", | ||
|
@@ -23,6 +30,7 @@ | |
"npm-run-all": "^4.1.5", | ||
"serve": "^14.2.0", | ||
"typedoc": "^0.24.6", | ||
"typescript": "^5.0.4" | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.6.0" | ||
} | ||
} |
Oops, something went wrong.