@enhancd/react-file-router 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/lib/navigate-to-page/navigate-to-page.d.ts +25 -0
- package/{src/lib/reactFileRouter.ts → dist/lib/reactFileRouter.d.ts} +0 -1
- package/dist/lib/route/route.d.ts +2 -0
- package/dist/lib/router-schema/router-schema.d.ts +2 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/$default/DefaultDeclaration.page.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.fallback.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.lazy.page.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/Index.404.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/Index.error.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/Index.layout.d.ts +1 -0
- package/dist/lib/vite-plugin/__tests__/src/$router/Index.page.d.ts +1 -0
- package/dist/lib/vite-plugin/compile-folder-to-schema/compileFolderToSchema.d.ts +57 -0
- package/dist/lib/vite-plugin/compile-lazy-pages/compileLazyPages.d.ts +6 -0
- package/dist/lib/vite-plugin/compile-schema-to-router-file/compileSchemaToRouterFile.d.ts +2 -0
- package/dist/lib/vite-plugin/transpile-lazy-page/transpile-lazy-page.d.ts +3 -0
- package/dist/lib/vite-plugin/vitePlugin.d.ts +6 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/vite-plugin.cjs.js +4 -0
- package/dist/vite-plugin.cjs.js.map +1 -0
- package/dist/vite-plugin.d.ts +9 -0
- package/dist/vite-plugin.esm.js +4 -0
- package/dist/vite-plugin.esm.js.map +1 -0
- package/package.json +2 -1
- package/eslint.config.mjs +0 -8
- package/rollup.config.js +0 -99
- package/src/index.ts +0 -1
- package/src/lib/navigate-to-page/navigate-to-page.tsx +0 -23
- package/src/lib/route/route.ts +0 -12
- package/src/lib/router-schema/router-schema.ts +0 -5
- package/src/lib/vite-plugin/__tests__/reactFileRouterVitePlugin.spec.ts +0 -16
- package/src/lib/vite-plugin/__tests__/src/$router/$default/DefaultDeclaration.page.tsx +0 -3
- package/src/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.fallback.tsx +0 -3
- package/src/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.lazy.page.tsx +0 -3
- package/src/lib/vite-plugin/__tests__/src/$router/Index.404.tsx +0 -3
- package/src/lib/vite-plugin/__tests__/src/$router/Index.error.tsx +0 -3
- package/src/lib/vite-plugin/__tests__/src/$router/Index.layout.tsx +0 -10
- package/src/lib/vite-plugin/__tests__/src/$router/Index.page.tsx +0 -3
- package/src/lib/vite-plugin/compile-folder-to-schema/compileFolderToSchema.ts +0 -125
- package/src/lib/vite-plugin/compile-lazy-pages/compileLazyPages.ts +0 -30
- package/src/lib/vite-plugin/compile-schema-to-router-file/compileSchemaToRouterFile.ts +0 -64
- package/src/lib/vite-plugin/transpile-lazy-page/transpile-lazy-page.ts +0 -29
- package/src/lib/vite-plugin/vitePlugin.ts +0 -69
- package/src/types/reactFileRouterSchema.d.ts +0 -14
- package/tsconfig.json +0 -13
- package/tsconfig.lib.json +0 -32
- package/tsconfig.spec.json +0 -37
- package/vite.config.ts +0 -19
- /package/{src/lib/navigate-to-page/index.ts → dist/lib/navigate-to-page/index.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$deep$nested$path/DeepNestedPath.page.tsx → dist/lib/vite-plugin/__tests__/src/$router/$deep$nested$path/DeepNestedPath.page.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$default/$arrow/DefaultArrow.page.tsx → dist/lib/vite-plugin/__tests__/src/$router/$default/$arrow/DefaultArrow.page.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.layout.tsx → dist/lib/vite-plugin/__tests__/src/$router/$lazy/Lazy.layout.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$named/$arrow/NamedArrowPage.tsx → dist/lib/vite-plugin/__tests__/src/$router/$named/$arrow/NamedArrowPage.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$named/$declaration/NamedDeclaration.page.tsx → dist/lib/vite-plugin/__tests__/src/$router/$named/$declaration/NamedDeclaration.page.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$query@idx/$nested@param/QueryNested.page.tsx → dist/lib/vite-plugin/__tests__/src/$router/$query@idx/$nested@param/QueryNested.page.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.404.tsx → dist/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.404.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.layout.tsx → dist/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.layout.d.ts} +0 -0
- /package/{src/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.page.tsx → dist/lib/vite-plugin/__tests__/src/$router/$query@idx/Query.page.d.ts} +0 -0
package/vite.config.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
|
|
3
|
-
export default defineConfig(() => ({
|
|
4
|
-
root: __dirname,
|
|
5
|
-
cacheDir: "../../node_modules/.vite/packages/react-file-router",
|
|
6
|
-
plugins: [],
|
|
7
|
-
test: {
|
|
8
|
-
name: "react-file-router",
|
|
9
|
-
watch: false,
|
|
10
|
-
globals: true,
|
|
11
|
-
environment: "node",
|
|
12
|
-
include: ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
|
|
13
|
-
reporters: ["default"],
|
|
14
|
-
coverage: {
|
|
15
|
-
reportsDirectory: "./test-output/vitest/coverage",
|
|
16
|
-
provider: "v8" as const,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
}));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|