Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
"private": true,
"sideEffects": false,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"start": "echo Please run a specific site && exit 1"
"build": "vp run -r build",
"check": "vp check",
"dev": "vp run -r dev",
"lint": "vp run -r lint",
"start": "echo Please run a specific site && exit 1",
"test": "vp test"
},
"engines": {
"node": ">=16"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"turbo": "^1.8.3"
"vite-plus": "^0.1.14"
},
"packageManager": "pnpm@9.15.9"
}
12 changes: 6 additions & 6 deletions packages/client-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"name": "@contentsgarten/client-utils",
"version": "2.0.0",
"description": "Utility functions for contentsgarten",
"module": "dist/index.js",
"module": "dist/index.mjs",
"type": "module",
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"files": [
"src",
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"dev": "pnpm run build --watch"
"build": "vp pack",
"dev": "vp pack --watch"
},
"keywords": [],
"author": "Thai Pangsakulyanont <dtinth@spacet.me>",
Expand All @@ -24,8 +24,8 @@
"@types/node": "^20.0.0",
"contentsgarten": "workspace:*",
"firebase": "^10.0.0",
"tsup": "^8.0.0",
"typescript": "5"
"typescript": "5",
"vite-plus": "^0.1.14"
},
"peerDependencies": {
"firebase": "^9.18.0 || ^10.0.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/client-utils/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'vite-plus'

export default defineConfig({
pack: {
dts: true,
entry: ['src/index.ts'],
format: ['esm'],
},
})
14 changes: 7 additions & 7 deletions packages/contentsgarten/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "contentsgarten",
"version": "2.1.0",
"description": "A cloud-native wiki engine",
"module": "dist/index.js",
"exports": "./dist/index.js",
"module": "dist/index.mjs",
"exports": "./dist/index.mjs",
"type": "module",
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"files": [
"src",
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"dev": "pnpm run build --watch"
"build": "vp pack",
"dev": "vp pack --watch"
},
"keywords": [],
"author": "Thai Pangsakulyanont <dtinth@spacet.me>",
Expand All @@ -29,8 +29,8 @@
"depcheck": "^1.4.3",
"lodash-es": "^4.17.21",
"prettier": "^3.0.0",
"tsup": "^8.0.0",
"typescript": "5"
"typescript": "5",
"vite-plus": "^0.1.14"
},
"dependencies": {
"@keyv/redis": "^4.0.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/contentsgarten/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'vite-plus'

export default defineConfig({
pack: {
dts: true,
entry: ['src/index.ts'],
format: ['esm'],
},
})
14 changes: 7 additions & 7 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
"name": "@contentsgarten/html",
"version": "1.3.0",
"description": "React component that renders HTML contents generated by @contentsgarten/markdown",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"type": "module",
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"files": [
"src",
"dist"
],
"scripts": {
"build": "tsup src/index.tsx --format esm --dts",
"dev": "pnpm run build --watch"
"build": "vp pack",
"dev": "vp pack --watch",
"test": "vp test"
},
"keywords": [],
"author": "Thai Pangsakulyanont <dtinth@spacet.me>",
Expand All @@ -27,9 +28,8 @@
"@types/react-dom": "^18.0.11",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"tsup": "^8.0.0",
"typescript": "5",
"vitest": "^2.0.0"
"vite-plus": "^0.1.14"
},
"peerDependencies": {
"react": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/html/src/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect, suite } from 'vitest'
import { test, expect, suite } from 'vite-plus/test'
import { Html, MarkdownCustomComponents } from '.'
import { renderToStaticMarkup } from 'react-dom/server'

Expand Down
12 changes: 12 additions & 0 deletions packages/html/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'vite-plus'

export default defineConfig({
pack: {
dts: true,
entry: ['src/index.tsx'],
format: ['esm'],
},
test: {
include: ['src/**/*.test.tsx'],
},
})
14 changes: 7 additions & 7 deletions packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
"name": "@contentsgarten/markdown",
"version": "2.0.0",
"description": "Markdown component for contentsgarten",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"type": "module",
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"files": [
"src",
"dist"
],
"scripts": {
"build": "tsup src/index.tsx --format esm --dts",
"dev": "pnpm run build --watch"
"build": "vp pack",
"dev": "vp pack --watch",
"test": "vp test"
},
"keywords": [],
"author": "Thai Pangsakulyanont <dtinth@spacet.me>",
Expand All @@ -34,11 +35,10 @@
"rehype": "^12.0.1",
"rehype-autolink-headings": "^7.0.0",
"rehype-slug": "^6.0.0",
"tsup": "^8.0.0",
"typescript": "5",
"unified": "^11.0.0",
"unist-util-visit": "^5.0.0",
"vitest": "^2.0.0"
"vite-plus": "^0.1.14"
},
"dependencies": {
"@wooorm/starry-night": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/src/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect, suite } from 'vitest'
import { test, expect, suite } from 'vite-plus/test'
import { processMarkdown, renderMarkdown } from '.'

test('heading id', async () => {
Expand Down
12 changes: 12 additions & 0 deletions packages/markdown/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'vite-plus'

export default defineConfig({
pack: {
dts: true,
entry: ['src/index.tsx'],
format: ['esm'],
},
test: {
include: ['src/**/*.test.tsx'],
},
})
14 changes: 7 additions & 7 deletions packages/server-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "@contentsgarten/server-utils",
"version": "10.0.0",
"description": "Utility functions for contentsgarten",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"type": "module",
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"files": [
"src",
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"dev": "pnpm run build --watch"
"build": "vp pack",
"dev": "vp pack --watch"
},
"keywords": [],
"author": "Thai Pangsakulyanont <dtinth@spacet.me>",
Expand All @@ -25,8 +25,8 @@
"@trpc/server": "^10.16.0",
"@tsconfig/node18": "^2.0.0",
"@types/node": "^20.0.0",
"tsup": "^8.0.0",
"typescript": "5"
"typescript": "5",
"vite-plus": "^0.1.14"
},
"peerDependencies": {
"@trpc/client": "^10.11.1",
Expand Down
9 changes: 9 additions & 0 deletions packages/server-utils/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'vite-plus'

export default defineConfig({
pack: {
dts: true,
entry: ['src/index.ts'],
format: ['esm'],
},
})
Loading
Loading