Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tootallnate/ncc-with-mts
https://github.com/tootallnate/ncc-with-mts
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tootallnate/ncc-with-mts
- Owner: TooTallNate
- Created: 2022-07-20T21:18:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T22:44:31.000Z (over 2 years ago)
- Last Synced: 2024-12-10T14:03:34.860Z (17 days ago)
- Language: TypeScript
- Homepage:
- Size: 50.8 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
This is a proof-of-concept for a Node.js CLI application that is:
* Written in TypeScript
* Outputs ESM module syntax
* Compiled into a bundle using `@vercel/ncc` with source map support
* Has tests using `jest` and `ts-jest`
* Has "dev mode" with `ts-node` using SWC and ESM modeRelevant documentation:
* [@sindre's Pure ESM package docs](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
* [`__dirname` replacement](https://blog.logrocket.com/alternatives-dirname-node-js-es-modules/)
* [Jest's ESM Support docs](https://jestjs.io/docs/ecmascript-modules)
* [`ts-jest` ESM Support docs](https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/)
* [`ts-node` SWC docs](https://typestrong.org/ts-node/docs/swc)
* [`ts-node` ESM docs](https://typestrong.org/ts-node/docs/imports#native-ecmascript-modules)