Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wildhoney/biutiful
:herb: Biutiful transform ES imports into browser usable ECMAScript imports.
https://github.com/wildhoney/biutiful
ecmascript ecmascript2015 es6 es6-javascript es6-modules exports imports modules
Last synced: about 1 month ago
JSON representation
:herb: Biutiful transform ES imports into browser usable ECMAScript imports.
- Host: GitHub
- URL: https://github.com/wildhoney/biutiful
- Owner: Wildhoney
- License: mit
- Created: 2018-05-21T20:56:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-26T08:30:00.000Z (over 6 years ago)
- Last Synced: 2024-12-25T04:33:01.552Z (about 1 month ago)
- Topics: ecmascript, ecmascript2015, es6, es6-javascript, es6-modules, exports, imports, modules
- Language: JavaScript
- Homepage:
- Size: 103 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Biutiful
> Biutiful transform ES imports into browser usable ECMAScript imports.
## Getting Started
Using the command requires supplying the `input` directory which contains your source files in their original format, followed by the `output` (defaults to `./`) directory which is where all of the files and ES modules will reside.
For example, to take the files from `./src` and to write to `./public` you'd supply the following:
```bash
biutiful --input ./src --output ./public
```All of the dependencies found within `node_modules` will be placed into the `es_modules` directory, and have their imports updated – along with the source files – to map to the ES files using [Babel's AST](https://github.com/babel/babel/tree/master/packages/babel-parser) parser.
When traversing dependencies, Biutiful will attempt to find ES modules from the `package.json` file using the `module` and `js:next` entries respectively. If neither are found then either the `main` entry or `./index.js` file will be used and the file(s) transpiled using [Lebab](https://github.com/lebab/lebab).