Skip to content

Commit

Permalink
feat: update format
Browse files Browse the repository at this point in the history
  • Loading branch information
chaxus committed Nov 19, 2023
1 parent af86368 commit 49dd716
Show file tree
Hide file tree
Showing 28 changed files with 1,121 additions and 882 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ LICENSE.md
pnpm-lock.yaml
pnpm-workspace.yaml
assets
.vscode
.vscode
report
15 changes: 13 additions & 2 deletions packages/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import DefaultTheme from 'vitepress/theme';
import 'ranui';
import './styles/index.less';
import './styles/vars.less';

declare global {
interface ImportMeta {
env: {
SSR: boolean
}
}
}

export default {
...DefaultTheme,
enhanceApp({ app, router, siteData }) {},
enhanceApp({ app, router, siteData }) {
if (!import.meta.env.SSR) {
import('ranui');
}
},
};
6 changes: 3 additions & 3 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"license": "ISC",
"devDependencies": {
"less": "^4.1.3",
"vitepress": "1.0.0-rc.20"
"vite": "^5.0.0",
"vitepress": "1.0.0-rc.29"
},
"dependencies": {
"ranui": "workspace:0.1.6",
"ranuts": "0.1.0-alpha.9"
"ranui": "workspace:0.1.6"
}
}
21 changes: 21 additions & 0 deletions packages/docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"include": ["**/*.ts"],
"exclude": ["node_modules/**", "dist/**"],
"compilerOptions": {
"module": "ESNext",
"esModuleInterop": true,
"target": "ESNext",
"moduleResolution": "node",
"outDir": "dist",
"types": ["vite/client"],
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"isolatedModules": false,
"strict": true,
"noImplicitAny": true,
"useUnknownInCatchVariables": false,
"inlineSourceMap": true,
"baseUrl": ".",
"experimentalDecorators": true
}
}
2 changes: 2 additions & 0 deletions packages/docs/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
interface Window {
ran_docs: boolean | undefined;
uploadFile: Function;

}

declare namespace NodeJS {
interface Process {
ran_docs: boolean | undefined;
}
}

Loading

0 comments on commit 49dd716

Please sign in to comment.