Files
yjs/rollup.config.js

88 lines
1.5 KiB
JavaScript
Raw Normal View History

2018-11-25 03:17:00 +01:00
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
import uglify from 'rollup-plugin-uglify-es'
export default [{
2018-11-25 22:39:30 +01:00
input: './index.mjs',
output: [{
2018-11-25 03:17:00 +01:00
name: 'Y',
2018-11-25 22:39:30 +01:00
file: 'build/yjs.js',
format: 'cjs',
2018-11-25 03:17:00 +01:00
sourcemap: true
2018-11-25 22:39:30 +01:00
}]
2018-11-25 03:17:00 +01:00
}, {
2018-11-25 22:39:30 +01:00
input: 'tests/index.mjs',
2018-11-25 03:17:00 +01:00
output: {
2018-11-25 22:39:30 +01:00
file: 'build/y.test.mjs',
2018-11-25 03:17:00 +01:00
format: 'iife',
name: 'ytests',
sourcemap: true
},
plugins: [
nodeResolve({
main: true,
module: true
}),
commonjs()
]
}, {
2018-11-25 22:39:30 +01:00
input: './examples/prosemirror.mjs',
2018-11-25 03:17:00 +01:00
output: {
name: 'prosemirror',
file: 'examples/build/prosemirror.js',
format: 'iife',
sourcemap: true
},
plugins: [
nodeResolve({
sourcemap: true,
module: true
}),
commonjs(),
babel(),
uglify()
]
2018-11-26 16:05:12 +01:00
}, {
input: './examples/dom.mjs',
output: {
name: 'dom',
file: 'examples/build/dom.js',
format: 'iife',
sourcemap: true
},
plugins: [
babel(),
uglify()
]
2018-11-25 03:17:00 +01:00
}, {
2018-11-25 22:39:30 +01:00
input: './examples/textarea.mjs',
2018-11-25 03:17:00 +01:00
output: {
name: 'textarea',
file: 'examples/build/textarea.js',
format: 'iife',
sourcemap: true
},
plugins: [
2018-11-26 02:13:06 +01:00
babel(),
2018-11-25 03:17:00 +01:00
uglify()
]
}, {
2018-11-25 22:39:30 +01:00
input: './examples/quill.mjs',
2018-11-25 03:17:00 +01:00
output: {
name: 'textarea',
file: 'examples/build/quill.js',
format: 'iife',
sourcemap: true
},
plugins: [
nodeResolve({
sourcemap: true,
module: true
}),
commonjs(),
babel(),
uglify()
]
}]