Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/merodiro/esdx
CLI for blazing speed package development
https://github.com/merodiro/esdx
Last synced: about 1 month ago
JSON representation
CLI for blazing speed package development
- Host: GitHub
- URL: https://github.com/merodiro/esdx
- Owner: merodiro
- Created: 2021-04-14T23:08:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T12:53:31.000Z (over 1 year ago)
- Last Synced: 2024-11-08T23:42:03.604Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 3.8 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# ESDX
CLI for blazing speed package development
Easily create typescript packages and enjoy the extreme speed from [esbuild](https://esbuild.github.io/) with a workflow heavily inspired (copied) from [TSDX](https://tsdx.io/)
⚠Warning: this package is currently WIP and not ready for production use yet⚠
## Features
- Bundles code using [esbuild](https://esbuild.github.io/) and outputs ESM modules
- Works with react out of the box
- Comes with vite playground for react packages to test it or create a demo
- Jest test runner setup with `esbuild`## Getting started
```sh
npm init esdx mylib
cd mylib
yarn
yarn start
```That's it. You don't need to worry about setting up TypeScript or Rollup or Jest or other plumbing. Just start editing src/index.ts and go!
Below is a list of commands you will probably find useful:
`npm start`
Runs the project in development/watch mode. Your project will be rebuilt upon changes.
`npm build`
Bundles the package to the dist folder.
`npm test`
Runs your tests using Jest.
`prepare` script
Bundles and packages to the dist folder. Runs automatically when you run either `npm publish`. The prepare script will run the equivalent of `npm run build`. It will also be run if your module is installed as a git dependency (ie: "mymodule": "github:myuser/mymodule#some-branch") so it can be depended on without checking the transpiled code into git.
## Credit
- [TSDX](https://tsdx.io/)
- [Vite](https://vitejs.dev/)