https://github.com/ksxnodeapps/make-mjs
Turn a normal Babel JavaScript file that uses ES module import syntax into a .mjs file that imports exact URL.
https://github.com/ksxnodeapps/make-mjs
esmodules javascript mjs nodejs npm
Last synced: about 4 hours ago
JSON representation
Turn a normal Babel JavaScript file that uses ES module import syntax into a .mjs file that imports exact URL.
- Host: GitHub
- URL: https://github.com/ksxnodeapps/make-mjs
- Owner: ksxnodeapps
- License: mit
- Created: 2019-09-01T08:13:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-16T11:43:49.000Z (29 days ago)
- Last Synced: 2025-07-03T02:43:57.111Z (12 days ago)
- Topics: esmodules, javascript, mjs, nodejs, npm
- Language: TypeScript
- Homepage: https://ksxnodeapps.github.io/make-mjs/
- Size: 2.48 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Collection of `@make-mjs` packages
## Purpose
This is a collection of packages that help turn a normal Babel JavaScript file that uses ES module `import` syntax into a `.mjs` file that `import`s exact URL.
## Packages
* [@make-mjs/cli](https://www.npmjs.com/package/@make-mjs/cli): Command-line executable
* [@make-mjs/main](https://www.npmjs.com/package/@make-mjs/main): APIs to compile a directory
* [@make-mjs/code](https://www.npmjs.com/package/@make-mjs/code): APIs to compile a file
* [@make-mjs/url](https://www.npmjs.com/package/@make-mjs/url): APIs to transform an import/export URL
* [and more...](https://www.npmjs.com/org/make-mjs)## APIs Documentation
Go to [the GitHub page](https://ksxnodeapps.github.io/make-mjs/)
## Development
### System Requirements
* Node.js ≥ 10.16.3
* Package Manager: [pnpm](https://pnpm.js.org/)
* Git### Scripts
#### Build
```sh
pnpm run build
```#### Clean
```sh
pnpm run clean
```#### Test
##### Test Everything
```sh
pnpm test
```##### Test Changed Files Only
```sh
pnpm test -- --onlyChanged
```##### Test A Single File
```sh
pnpm test path/to/test/file.test.ts
```or
```sh
pnpm test filename.test.ts
```##### Update Jest Snapshot
```sh
pnpm test -- -u
```#### Start Node.js REPL
This starts a Node.js REPL where you can import every module inside `packages/` folder.
```sh
pnpm run repl
```## License
[MIT](https://git.io/JeY5b) © [Hoàng Văn Khải](https://github.com/KSXGitHub)