You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import buble from 'rollup-plugin-buble';
|
|
|
|
import json from 'rollup-plugin-json';
|
|
|
|
import string from 'rollup-plugin-string';
|
|
|
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
entry: 'bin/src/index.js',
|
|
|
|
dest: 'bin/rollup',
|
|
|
|
format: 'cjs',
|
|
|
|
banner: '#!/usr/bin/env node',
|
|
|
|
plugins: [
|
|
|
|
string({ include: '**/*.md' }),
|
|
|
|
json(),
|
|
|
|
buble(),
|
|
|
|
commonjs({
|
|
|
|
include: 'node_modules/**'
|
|
|
|
}),
|
|
|
|
nodeResolve({
|
|
|
|
main: true
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: [
|
|
|
|
'fs',
|
|
|
|
'path',
|
|
|
|
'module',
|
|
|
|
'source-map-support',
|
|
|
|
'rollup'
|
|
|
|
],
|
|
|
|
paths: {
|
|
|
|
rollup: '../dist/rollup.js'
|
|
|
|
}
|
|
|
|
};
|