Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/operandom/rollup-plugin-vinyl
A rollup.js plugin to import from Vinyl files.
https://github.com/operandom/rollup-plugin-vinyl
Last synced: 25 days ago
JSON representation
A rollup.js plugin to import from Vinyl files.
- Host: GitHub
- URL: https://github.com/operandom/rollup-plugin-vinyl
- Owner: operandom
- License: mit
- Created: 2016-06-08T12:51:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-08T08:28:51.000Z (over 8 years ago)
- Last Synced: 2024-03-15T06:04:07.789Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome - vinyl - Import from [Vinyl](https://github.com/gulpjs/vinyl) files (Plugins / Other File Imports)
README
rollup-plugin-vinyl
===================[![Build Status](https://travis-ci.org/operandom/rollup-plugin-vinyl.svg)](https://travis-ci.org/operandom/rollup-plugin-vinyl) [![Dependecies status](https://david-dm.org/operandom/rollup-plugin-vinyl.svg)](https://david-dm.org/username/repo.svg)
A [rollup.js](http://rollupjs.org) plugin to import from [Vinyl](https://github.com/gulpjs/vinyl) files.
installation
------------```Shell
npm i -D rollup-plugin-vinyl
```Usage
-----```javascript
import vinyl from 'rollup-plugin-vinyl';
import File from 'vinyl';export default {
entry: 'src/main.js',
format: 'cjs',
plugins: [// Single file
vinyl({ files: new File({ ... }) }),// Multiple files
vinyl({ files: [
vinylFile1,
vinylFile2,
...
] }),// Custom module resolution
// This will resolve `import Module from 'lib/module'`
// to `lib/module.ts` or `lib/module/index.ts`
vinyl({
extension: 'ts',
files: ...
})],
dest: 'bundle.js'
}
```Test
----
```Shell
git clone https://github.com/operandom/rollup-plugin-vinyl.git
cd rollup-plugin-vinyl
npm install
npm test
```License
-------Released under the [MIT license](LICENSE.md).