feat: create tuono-router package

This commit is contained in:
Valerio Ageno
2024-05-02 19:10:20 +02:00
parent 6dc33f8e3e
commit 37edb3b830
5 changed files with 42 additions and 1 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
- `tuono-vite`: Handles the bundling (with chunk splitting)
- `tuono-routes-generator`: Handles the creation of the `routeGen.tree.ts` file
- `tuono-router`: Expose all the Functions and Component related to the routing
- `tuono-router`: Expose all the Functions and Components related to the routing
- `tuono`: Collect and expose all the public APIs. Is the only published package
+12
View File
@@ -0,0 +1,12 @@
{
"name": "tuono-router",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
View File
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react",
},
"include": ["src", "tests", "vite.config.ts"],
}
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackBuildConfig } from '@tanstack/config/build'
import react from '@vitejs/plugin-react'
const config = defineConfig({
plugins: [react()],
test: {
name: 'react-router',
watch: false,
environment: 'jsdom',
},
})
export default mergeConfig(
config,
tanstackBuildConfig({
entry: './src/index.tsx',
srcDir: './src',
}),
)