mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Better dir structure
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
node: {
|
node: {
|
||||||
paths: ['src'],
|
paths: ['src-web'],
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<div id="radix-portal"></div>
|
<div id="radix-portal"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src-web/main.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
2
rsw.toml
2
rsw.toml
@@ -34,6 +34,6 @@ dir = "my-template"
|
|||||||
#! 📦 -------- package: @rsw --------
|
#! 📦 -------- package: @rsw --------
|
||||||
[[crates]]
|
[[crates]]
|
||||||
#! npm package name (path: $ROOT/@rsw)
|
#! npm package name (path: $ROOT/@rsw)
|
||||||
name = "@rsw/hello"
|
name = "src-wasm/hello"
|
||||||
#! run `npm link`: `true` | `false`, default is `false`
|
#! run `npm link`: `true` | `false`, default is `false`
|
||||||
link = true
|
link = true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
|
|||||||
import App from './App';
|
import App from './App';
|
||||||
import { HelmetProvider } from 'react-helmet-async';
|
import { HelmetProvider } from 'react-helmet-async';
|
||||||
import { MotionConfig } from 'framer-motion';
|
import { MotionConfig } from 'framer-motion';
|
||||||
import init, { greet } from '@rsw/hello';
|
import init, { greet } from 'hello';
|
||||||
|
|
||||||
import './main.css';
|
import './main.css';
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: [
|
||||||
"./index.html",
|
"./index.html",
|
||||||
"./src/**/*.{js,ts,jsx,tsx}",
|
"./src-web/**/*.{js,ts,jsx,tsx}",
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx"
|
"jsx": "react-jsx"
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": [
|
||||||
|
"src-web"
|
||||||
|
],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user