Skip to content

Commit

Permalink
Change structure to accomodate Nextcloud's weird and undocumented JS …
Browse files Browse the repository at this point in the history
…bundle resolution
  • Loading branch information
te-online committed Mar 24, 2024
1 parent b2c7628 commit 48f5261
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .deployignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package-lock.json
package.json
test
.deployignore
js
src
vite.config.js
svelte.config.js
.prettierrc
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public function boot(IBootContext $context): void {
class BeforeTemplateRenderedListener implements IEventListener {
public function handle(Event $event): void {
Util::addStyle("files_linkeditor", "linkeditor");
Util::addScript("files_linkeditor", "../dist/bundle");
Util::addScript("files_linkeditor", "bundle");
}
}

class LoadAdditionalScriptsListener implements IEventListener {
public function handle(Event $event): void {
Util::addStyle("files_linkeditor", "linkeditor");
Util::addScript("files_linkeditor", "../dist/bundle");
Util::addScript("files_linkeditor", "bundle");
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion unittest/test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

import { sanitizeUrl } from "@braintree/sanitize-url";
import { Parser } from "../js/lib/Parser";
import { Parser } from "../src/lib/Parser";
import { suite, describe, it, expect, vi } from "vitest";
import { readFileSync } from "node:fs";
import { JSDOM } from "jsdom";
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { nodePolyfills } from "vite-plugin-node-polyfills";

export default defineConfig({
build: {
outDir: "js",
lib: {
name: "files_linkeditor",
entry: "js/main.js",
entry: "src/main.js",
fileName: "bundle",
formats: ["es"],
},
Expand Down

0 comments on commit 48f5261

Please sign in to comment.