large scale refactoring

This commit is contained in:
Kevin Jahns
2018-11-25 03:17:00 +01:00
parent ade3e1949d
commit 9c0da271eb
154 changed files with 1769 additions and 1199 deletions

80
rollup.config.js Normal file
View File

@@ -0,0 +1,80 @@
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 [{
input: './index.js',
output: {
name: 'Y',
file: 'build/yjs.umd.js',
format: 'umd',
sourcemap: true
}
}, {
input: 'tests/index.js',
output: {
file: 'build/y.test.js',
format: 'iife',
name: 'ytests',
sourcemap: true
},
plugins: [
nodeResolve({
main: true,
module: true
}),
commonjs()
]
}, {
input: './examples/prosemirror.js',
output: {
name: 'prosemirror',
file: 'examples/build/prosemirror.js',
format: 'iife',
sourcemap: true
},
plugins: [
nodeResolve({
sourcemap: true,
module: true
}),
commonjs(),
babel(),
uglify()
]
}, {
input: './examples/textarea.js',
output: {
name: 'textarea',
file: 'examples/build/textarea.js',
format: 'iife',
sourcemap: true
},
plugins: [
nodeResolve({
sourcemap: true,
module: true
}),
commonjs(),
babel(),
uglify()
]
}, {
input: './examples/quill.js',
output: {
name: 'textarea',
file: 'examples/build/quill.js',
format: 'iife',
sourcemap: true
},
plugins: [
nodeResolve({
sourcemap: true,
module: true
}),
commonjs(),
babel(),
uglify()
]
}]