├── .npmrc ├── .gitignore ├── packages └── svelte │ ├── demo │ ├── .npmrc │ ├── static │ │ └── favicon.png │ ├── .gitignore │ ├── src │ │ ├── app.d.ts │ │ ├── app.html │ │ └── routes │ │ │ └── +page.svelte │ ├── vite.config.ts │ ├── tsconfig.json │ ├── svelte.config.js │ ├── package.json │ ├── README.md │ └── CHANGELOG.md │ ├── tsconfig.json │ ├── tsup.config.js │ ├── src │ ├── minimal-setup.ts │ ├── basic-setup.ts │ └── index.ts │ ├── package.json │ ├── CHANGELOG.md │ └── README.md ├── pnpm-workspace.yaml ├── .prettierrc.json ├── .changeset ├── config.json └── README.md ├── package.json ├── svelte.config.js ├── .github └── workflows │ └── release.yml ├── README.md └── pnpm-lock.yaml /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist -------------------------------------------------------------------------------- /packages/svelte/demo/.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | resolution-mode=highest 3 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | # all packages in direct subdirs of packages/ 3 | - 'packages/**' 4 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "printWidth": 100, 4 | "useTabs": true, 5 | "trailingComma": "es5" 6 | } 7 | -------------------------------------------------------------------------------- /packages/svelte/demo/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PuruVJ/neocodemirror/HEAD/packages/svelte/demo/static/favicon.png -------------------------------------------------------------------------------- /packages/svelte/demo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | vite.config.js.timestamp-* 10 | vite.config.ts.timestamp-* 11 | -------------------------------------------------------------------------------- /packages/svelte/demo/src/app.d.ts: -------------------------------------------------------------------------------- 1 | // See https://kit.svelte.dev/docs/types#app 2 | // for information about these interfaces 3 | declare global { 4 | namespace App { 5 | // interface Error {} 6 | // interface Locals {} 7 | // interface PageData {} 8 | // interface Platform {} 9 | } 10 | } 11 | 12 | export {}; 13 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "public", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [] 11 | } 12 | -------------------------------------------------------------------------------- /packages/svelte/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "ES2020", 4 | "target": "ESNext", 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "declarationDir": "dist/", 8 | "strict": true, 9 | "esModuleInterop": true, 10 | "moduleResolution": "Node" 11 | }, 12 | "files": ["./src/index.ts"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/svelte/demo/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { sveltekit } from '@sveltejs/kit/vite'; 2 | import { defineConfig } from 'vite'; 3 | 4 | export default defineConfig({ 5 | plugins: [sveltekit()], 6 | resolve: { 7 | dedupe: ['@codemirror/state'], 8 | }, 9 | // optimizeDeps: { 10 | // // exclude: ['@codemirror/state'], 11 | // include: ['@codemirror/state'], 12 | // }, 13 | }); 14 | -------------------------------------------------------------------------------- /packages/svelte/demo/src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | %sveltekit.head% 8 | 9 | 10 |