Skip to content

Commit

Permalink
Merge pull request #1947
Browse files Browse the repository at this point in the history
esbuild for client + UI
  • Loading branch information
shakyShane authored Mar 15, 2022
2 parents c30868a + 9d24de5 commit 30c24dc
Show file tree
Hide file tree
Showing 21 changed files with 1,315 additions and 12,409 deletions.
1 change: 1 addition & 0 deletions packages/browser-sync-client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ npm-debug.log
test/coverage
example.proxy.js
/dist/*
/_dist/*
2 changes: 1 addition & 1 deletion packages/browser-sync-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var fs = require("fs");
var path = require("path");
var zlib = require("zlib");

var minifiedScript = path.join(__dirname, "dist", "index.min.js");
var minifiedScript = path.join(__dirname, "dist", "index.js");
var unminifiedScript = path.join(__dirname, "dist", "index.js");

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FileReloadEventPayload } from "../../types/socket";
import { FileReloadEventPayload } from "../types/socket";
import { EffectNames } from "../effects";
import { Inputs } from "../index";
import { reload } from "../../vendor/Reloader";
import { reload } from "../vendor/Reloader";
import { withLatestFrom } from "rxjs/operators/withLatestFrom";
import { mergeMap } from "rxjs/operators/mergeMap";
import { Observable } from "rxjs/Observable";
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sync-client/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SocketEvent, socketHandlers$ } from "./socket-messages";
import { merge } from "rxjs/observable/merge";
import { initLogger, logHandler$ } from "./log";
import { effectOutputHandlers$ } from "./effects";
import { Nanologger } from "../vendor/logger";
import { Nanologger } from "./vendor/logger";
import { scrollRestoreHandlers$, initWindowName } from "./scroll-restore";
import { initListeners } from "./listeners";
import { groupBy } from "rxjs/operators/groupBy";
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sync-client/lib/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BehaviorSubject } from "rxjs/BehaviorSubject";
import { timer } from "rxjs/observable/timer";
import { Observable } from "rxjs/Observable";
import { of } from "rxjs/observable/of";
import { Nanologger } from "../vendor/logger";
import { Nanologger } from "./vendor/logger";
import { filter } from "rxjs/operators/filter";
import { tap } from "rxjs/operators/tap";
import { withLatestFrom } from "rxjs/operators/withLatestFrom";
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sync-client/lib/messages/FileReload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Inputs } from "../index";
import { filter } from "rxjs/operators/filter";
import { empty } from "rxjs/observable/empty";
import { isBlacklisted } from "../utils";
import { FileReloadEventPayload } from "../../types/socket";
import { FileReloadEventPayload } from "../types/socket";
import { of } from "rxjs/observable/of";
import { Observable } from "rxjs/Observable";
import { withLatestFrom } from "rxjs/operators/withLatestFrom";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IncomingSocketNames} from "../lib/socket-messages";
import {IncomingSocketNames} from "../socket-messages";

export type FileReloadEventPayload = {
url?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* :) :) :)
*
*/
import {getLocation, pathFromUrl, pathsMatch, pickBestMatch, splitUrl, updateSearch, array} from "../lib/utils";
import {getLocation, pathFromUrl, pathsMatch, pickBestMatch, splitUrl, updateSearch, array} from "../utils";
import {empty} from "rxjs/observable/empty";
import {Observable} from "rxjs/Observable";
import {merge} from "rxjs/observable/merge";
Expand All @@ -15,9 +15,9 @@ import {map} from "rxjs/operators/map";
import {mergeMap} from "rxjs/operators/mergeMap";
import {tap} from "rxjs/operators/tap";
import {mapTo} from "rxjs/operators/mapTo";
import {propSet} from "../lib/dom-effects/prop-set.dom-effect";
import {styleSet} from "../lib/dom-effects/style-set.dom-effect";
import {linkReplace} from "../lib/dom-effects/link-replace.dom-effect";
import {propSet} from "../dom-effects/prop-set.dom-effect";
import {styleSet} from "../dom-effects/style-set.dom-effect";
import {linkReplace} from "../dom-effects/link-replace.dom-effect";
import {mergeAll} from "rxjs/operators/mergeAll";

var hiddenElem;
Expand Down
Loading

0 comments on commit 30c24dc

Please sign in to comment.