mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-22 03:13:02 +00:00
be789ea9e6
* Extract bookmark view contexts * Implement basic partial updates for bookmark list and tag cloud * Refactor confirm button JS into web component * Refactor bulk edit JS into web component * Refactor tag autocomplete JS into web component * Refactor bookmark page JS into web component * Refactor global shortcuts JS into web component * Update tests * Add E2E test for partial updates * Add partial updates for archived bookmarks * Add partial updates for shared bookmarks * Cleanup helpers * Improve naming in bulk edit * Refactor shared components into behaviors * Refactor bulk edit components into behaviors * Refactor bookmark list components into behaviors * Update tests * Combine all scripts into bundle * Fix E2E CI
40 lines
No EOL
1.1 KiB
JavaScript
40 lines
No EOL
1.1 KiB
JavaScript
import svelte from 'rollup-plugin-svelte';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import { terser } from 'rollup-plugin-terser';
|
|
|
|
const production = !process.env.ROLLUP_WATCH;
|
|
|
|
export default {
|
|
input: 'bookmarks/frontend/index.js',
|
|
output: {
|
|
sourcemap: true,
|
|
format: 'iife',
|
|
name: 'linkding',
|
|
// Generate bundle in static folder to that it is picked up by Django static files finder
|
|
file: 'bookmarks/static/bundle.js'
|
|
},
|
|
plugins: [
|
|
svelte({
|
|
emitCss: false
|
|
}),
|
|
|
|
// If you have external dependencies installed from
|
|
// npm, you'll most likely need these plugins. In
|
|
// some cases you'll need additional configuration —
|
|
// consult the documentation for details:
|
|
// https://github.com/rollup/rollup-plugin-commonjs
|
|
resolve({
|
|
browser: true,
|
|
dedupe: importee => importee === 'svelte' || importee.startsWith('svelte/')
|
|
}),
|
|
commonjs(),
|
|
|
|
// If we're building for production (npm run build
|
|
// instead of npm run dev), minify
|
|
production && terser()
|
|
],
|
|
watch: {
|
|
clearScreen: false
|
|
}
|
|
}; |