Skip to content

Commit

Permalink
chore(docs): convert docs to workspace package (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins authored Jan 26, 2025
1 parent 6410fd0 commit 8b9be43
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
1 change: 0 additions & 1 deletion docs/components/[component].paths.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from "node:fs";

import path from "node:path";
import {
type Component,
Expand Down
16 changes: 16 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@tapsioss/docs",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"dependencies": {
"@tapsioss/theme": "workspace:*",
"@tapsioss/web-components": "workspace:*",
"@tapsioss/web-icons": "workspace:*"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"lint:ecma": "eslint packages/*/src/**/* --fix",
"lint": "run-p lint:*",
"fmt": "prettier packages/*/src/**/* --write --fix",
"docs:vitepress:dev": "vitepress dev docs",
"docs:vitepress:build": "vitepress build docs",
"docs:vitepress:preview": "vitepress preview docs",
"docs:vitepress:dev": "pnpm --filter docs run dev",
"docs:vitepress:build": "pnpm --filter docs run build",
"docs:vitepress:preview": "pnpm --filter docs run preview",
"docs:dev": "run-s analyze docs:gen:metadata docs:vitepress:dev",
"docs:build": "run-s analyze docs:gen:metadata docs:vitepress:build",
"docs:preview": "run-s docs:vitepress:preview",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ packages:
# all packages in direct subdirs of packages/
- "packages/*"
- "playground"
- "docs"
10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@
"baseUrl": ".",
"paths": {
// Icons metadata
"@tapsioss/icons": ["./packages/icons/dist"],
"@tapsioss/icons": ["./packages/icons/dist/index.js"],
"@tapsioss/icons/*": ["./packages/icons/dist/*"],
// Web Component Icons
"@tapsioss/web-icons": ["./packages/web-icons/dist"],
"@tapsioss/web-icons": ["./packages/web-icons/dist/index.js"],
"@tapsioss/web-icons/*": ["./packages/web-icons/dist/*"],
// React Icons
"@tapsioss/react-icons": ["./packages/react-icons/dist"],
"@tapsioss/react-icons": ["./packages/react-icons/dist/index.js"],
"@tapsioss/react-icons/*": ["./packages/react-icons/dist/*"],
// Web Components
"@tapsioss/web-components/*": ["./packages/web-components/dist/*"],
// React Components
"@tapsioss/react-components": ["./packages/react-components/dist"],
"@tapsioss/react-components": [
"./packages/react-components/dist/index.js"
],
"@tapsioss/react-components/*": ["./packages/react-components/dist/*"],
// Tokens
"@tapsioss/theme": ["./packages/theme/dist/index.css"]
Expand Down

0 comments on commit 8b9be43

Please sign in to comment.