mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
// eslint-disable-next-line import/no-unresolved
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import scss from 'rollup-plugin-scss';
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
import packagejson from './package.json';
|
|
|
|
const externals = [
|
|
...Object.keys(packagejson.dependencies || {}),
|
|
...Object.keys(packagejson.peerDependencies || {}),
|
|
'mattermost-redux',
|
|
'reselect',
|
|
];
|
|
|
|
export default [
|
|
{
|
|
input: 'src/index.tsx',
|
|
output: [
|
|
{
|
|
sourcemap: true,
|
|
file: packagejson.module,
|
|
format: 'es',
|
|
globals: {'styled-components': 'styled'},
|
|
},
|
|
],
|
|
plugins: [
|
|
scss(),
|
|
resolve({
|
|
browser: true,
|
|
extensions: ['.ts', '.tsx'],
|
|
}),
|
|
commonjs(),
|
|
typescript(),
|
|
],
|
|
external: (pkg) => externals.some((external) => pkg.startsWith(external)),
|
|
watch: {
|
|
clearScreen: false,
|
|
},
|
|
},
|
|
];
|