Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/hexo-renderer-buble
Using Buble to transform JS files in your Hexo website.
https://github.com/egoist/hexo-renderer-buble
buble es2015 hexo theme
Last synced: about 1 month ago
JSON representation
Using Buble to transform JS files in your Hexo website.
- Host: GitHub
- URL: https://github.com/egoist/hexo-renderer-buble
- Owner: egoist
- License: mit
- Created: 2016-11-15T05:03:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T14:07:20.000Z (about 3 years ago)
- Last Synced: 2024-10-30T08:08:38.617Z (3 months ago)
- Topics: buble, es2015, hexo, theme
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-renderer-buble
[![NPM version](https://img.shields.io/npm/v/hexo-renderer-buble.svg?style=flat-square)](https://npmjs.com/package/hexo-renderer-buble) [![NPM downloads](https://img.shields.io/npm/dm/hexo-renderer-buble.svg?style=flat-square)](https://npmjs.com/package/hexo-renderer-buble) [![Build Status](https://img.shields.io/circleci/project/egoist/hexo-renderer-buble/master.svg?style=flat-square)](https://circleci.com/gh/egoist/hexo-renderer-buble)
## Install
```bash
$ npm install --save hexo-renderer-buble
```## Usage
Just install this package and you're all set, if you want custom options for buble, simply do:
```yml
# _config.yml
buble:
transforms:
dangerousForOf: true
```Check out all buble options: https://buble.surge.sh/guide/#using-the-javascript-api
Default options:
```js
{
transforms: {
generator: false,
dangerousForOf: true,
dangerousTaggedTemplateString: true
}
}
```### include
By default it transforms all `.js` `.jsx` `.es6` files, but you can also set `include` to transform specified files only:
```yml
buble:
include: **/foo.js
# or array
include:
- **/foo.js
- **/js/bar.js
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## License
[MIT](https://egoist.mit-license.org/) © [EGOIST](https://github.com/egoist)