mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Added rollup config.
This commit is contained in:
parent
8926677a66
commit
8ddac2db45
72 changed files with 6079 additions and 15747 deletions
28
src/rollup.config.js
Normal file
28
src/rollup.config.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
const typescript = require('rollup-plugin-typescript2');
|
||||
const copy = require('rollup-plugin-copy');
|
||||
const glob = require('glob');
|
||||
const json = require('@rollup/plugin-json')
|
||||
module.exports = {
|
||||
input: glob.sync('./node/**/*.ts'), // Matches all TypeScript files in the 'src' directory and its subdirectories
|
||||
output: {
|
||||
preserveModules: true,
|
||||
dir: './dist',
|
||||
format: 'cjs',
|
||||
},
|
||||
plugins: [
|
||||
json(),
|
||||
typescript({
|
||||
tsconfig: 'tsconfig.json',
|
||||
}),
|
||||
copy({
|
||||
targets: [
|
||||
{src:'./package.json', dest:'./dist'},
|
||||
{ src: './LICENSE', dest: './dist' },
|
||||
{ src: './src/locales/*', dest: './dist/locales' },
|
||||
{ src: './src/static/css/*', dest: './dist/static/css' },
|
||||
{ src: './src/templates', dest: './dist/templates' },
|
||||
{src:'./ep.json', dest:'./dist'},
|
||||
]
|
||||
})
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue