Skip to content

Commit

Permalink
replace debug & mfs by cher-ami version
Browse files Browse the repository at this point in the history
  • Loading branch information
willybrauner committed Nov 2, 2023
1 parent 65f5b00 commit 9c8e4a5
Show file tree
Hide file tree
Showing 23 changed files with 2,442 additions and 1,004 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ render previous and current page component when route change.

This router loads [history](https://github.com/ReactTraining/history)
, [path-to-regexp](https://github.com/pillarjs/path-to-regexp)
and [@wbe/debug](https://github.com/willybrauner/debug) as dependencies.
and [@cher-ami/debug](https://github.com/cher-ami/debug) as dependencies.

## Playground

Expand Down
2 changes: 1 addition & 1 deletion examples/example-client/src/helper/transitionsHelper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gsap } from "gsap"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"
const log = debug(`router:transitionsHelper`)

export const transitionsHelper = (
Expand Down
2 changes: 1 addition & 1 deletion examples/example-client/src/pages/ArticlePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ForwardedRef, forwardRef, useEffect, useRef } from "react"
import { useLocation } from "@cher-ami/router"
import { useStack } from "@cher-ami/router"
import { transitionsHelper } from "../helper/transitionsHelper"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"

interface IProps {
params?: {
Expand Down
2 changes: 1 addition & 1 deletion examples/example-client/src/pages/BarPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "@cher-ami/router"
import { transitionsHelper } from "../helper/transitionsHelper"
import { routesList } from "../routes"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"

const componentName: string = "BarPage"
const log = debug(`router:${componentName}`)
Expand Down
2 changes: 1 addition & 1 deletion examples/example-client/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
useStack,
} from "@cher-ami/router"
import { transitionsHelper } from "../helper/transitionsHelper"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"

const componentName: string = "HomePage"
const log = debug(`router:${componentName}`)
Expand Down
4 changes: 2 additions & 2 deletions examples/example-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"@vitejs/plugin-react": "^4.1.0",
"@wbe/debug": "^1.2.0",
"@wbe/mfs": "^0.1.1",
"@cher-ami/debug": "^1.2.0",
"@cher-ami/mfs": "^0.1.1",
"chalk": "^5.3.0",
"compression": "^1.7.4",
"isomorphic-unfetch": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/prerender/prerender.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-ignore
import { render } from "~/server/index-server"
import * as mfs from "@wbe/mfs"
import * as mfs from "@cher-ami/mfs"
import path, { resolve } from "path"
import chalk from "chalk"
import { loadEnv } from "vite"
Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/src/helpers/transitionsHelper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gsap } from "gsap"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"
const log = debug(`router:transitionsHelper`)

export const transitionsHelper = (
Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/src/pages/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "@cher-ami/router"
import { transitionsHelper } from "../helpers/transitionsHelper"
import { getPathByRouteName } from "@cher-ami/router"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"
import { useLang } from "@cher-ami/router"
import { EPages } from "../routes"

Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve } from "path"
import { defineConfig } from "vite"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"
import react from "@vitejs/plugin-react"
const log = debug("config:vite.config")

Expand Down
2 changes: 1 addition & 1 deletion examples/example-ssr/vite.scripts.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve } from "path"
import { defineConfig } from "vite"
import debug from "@wbe/debug"
import debug from "@cher-ami/debug"
const log = debug("config:vite.config")

export default defineConfig(({ command, mode }) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
],
"dependencies": {
"@wbe/debug": "^1.2.0",
"@cher-ami/debug": "^1.2.0",
"history": "^5.3.0",
"path-to-regexp": "^6.2.1",
"react": ">=16.8.0",
Expand Down
Loading

0 comments on commit 9c8e4a5

Please sign in to comment.