Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T09:13:43.000Z (5 months ago)
- Last Synced: 2024-10-03T18:09:11.193Z (3 months ago)
- Topics: esmodules, javascript, mjs, nodejs, npm
- Language: TypeScript
- Homepage: https://ksxnodeapps.github.io/make-mjs/
- Size: 2.5 MB
- Stars: 1
- Watchers: 2
- 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)