feat: add AI command suggestions extension for Tiptap editor
- Implemented Commands plugin to handle command suggestions triggered by '@' character. - Created suggestion configuration to filter and render command items. - Added various command items including date, time, formatting, templates, and task management commands. - Introduced CSS styles for the Tiptap editor to enhance UI. - Configured TypeScript settings and Vite build for the project.
This commit is contained in:
27
vite.config.lib.ts
Normal file
27
vite.config.lib.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
const plugins = [react(), tailwindcss()];
|
||||
|
||||
/**
|
||||
* @see https://vitejs.dev/config/
|
||||
*/
|
||||
export default defineConfig({
|
||||
plugins,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, 'mod.ts'),
|
||||
name: 'KvMd',
|
||||
formats: ['es'],
|
||||
fileName: () => `kv-md.js`,
|
||||
},
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user