Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v4 #36
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 24, 2023
1 parent 7ef159e commit a7aab35
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"prepack": "npm run build",
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"watch": "tsbb watch",
"build": "tsbb build",
"watch": "tsbb watch src/*tsx --use-babel --cjs cjs",
"build": "tsbb build src/*tsx --use-babel --cjs cjs",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
"test": "kkt test --env=jsdom --app-src=./website",
"test:coverage": "kkt test --env=jsdom --coverage --app-src=./website"
Expand All @@ -36,22 +36,22 @@
"react-dom": ">=16.9.0"
},
"devDependencies": {
"@kkt/less-modules": "7.0.5",
"@kkt/raw-modules": "7.0.5",
"@kkt/scope-plugin-options": "7.0.5",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"@types/react-test-renderer": "17.0.1",
"@uiw/react-github-corners": "1.5.3",
"@uiw/react-markdown-preview": "3.4.7",
"husky": "7.0.4",
"kkt": "7.0.5",
"lint-staged": "12.1.7",
"prettier": "2.5.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-test-renderer": "17.0.2",
"tsbb": "3.5.4"
"@kkt/less-modules": "^7.4.9",
"@kkt/raw-modules": "^7.4.9",
"@kkt/scope-plugin-options": "^7.4.9",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@types/react-test-renderer": "^18.0.0",
"@uiw/react-github-corners": "^1.5.15",
"@uiw/react-markdown-preview": "^4.1.13",
"husky": "^8.0.3",
"kkt": "^7.4.9",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"tsbb": "^4.1.5"
},
"eslintConfig": {
"extends": [
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"baseUrl": "./website",
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"experimentalDecorators": true,
"removeComments": false,
"noEmit": true
},
"include": ["website", ".kktrc.ts"]
}
}
18 changes: 13 additions & 5 deletions website/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import MarkdownPreview from '@uiw/react-markdown-preview';
import GitHubCorners from '@uiw/react-github-corners';
import logo from './logo.svg';
import Example from './Example';
import MDStr from '../README.md';
import './App.css';

ReactDOM.render(
const container = document.getElementById('root');
const root = createRoot(container!);

root.render(
<div className="App">
<GitHubCorners fixed target="__blank" href="https://github.com/uiwjs/react-only-when" />
<header className="App-header">
Expand All @@ -16,7 +19,12 @@ ReactDOM.render(
<Example />
</div>
</header>
<MarkdownPreview source={MDStr} className="info" />
</div>,
document.getElementById('root'),
<MarkdownPreview
wrapperElement={{
"data-color-mode": "light"
}}
source={MDStr}
className="info"
/>
</div>
);
7 changes: 7 additions & 0 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig",
"include": ["../website"],
"compilerOptions": {
"baseUrl": "../website"
}
}

0 comments on commit a7aab35

Please sign in to comment.