https://github.com/salsify/broccoli-es6-module-facade
https://github.com/salsify/broccoli-es6-module-facade
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/salsify/broccoli-es6-module-facade
- Owner: salsify
- License: mit
- Created: 2014-10-15T14:42:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-15T16:10:06.000Z (over 11 years ago)
- Last Synced: 2025-06-10T15:50:21.667Z (about 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 38
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Broccoli ES6 Module Facade
## Installation
```bash
npm install -D broccoli-es6-module-facade
```
## Example
```javascript
var createES6Facades = require('broccoli-es6-module-facade');
var vendorFacades = createES6Facades({
description: 'ES6Facades (vendor)'
modules: {
jquery: {
defaultExport: 'jQuery',
exports: {
ajax: 'jQuery.ajax',
Deferred: 'jQuery.Deferred'
}
}
}
});
```
## Configuration
### `createES6Facades(options)`
---
`options.modules` *{Object}* (Required)
A hash keyed with the names of the module facades that should be created. Each value should
itself be a hash with two optional keys:
- `defaultExport` - an expression that will be the default export of the module
- `exports` - a mapping from identifiers to expressions representing the module's other exports
## License
This project is distributed under the MIT license.