Skip to content

Commit

Permalink
Merge pull request #10 from ITZSHOAIB/build-revamp
Browse files Browse the repository at this point in the history
chore: build process revamped completely moved rollup out
  • Loading branch information
ITZSHOAIB authored Nov 14, 2024
2 parents d988019 + cf0c4e2 commit 25e1245
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 469 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-otters-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"rehype-code-group": minor
---

chore: build process revamped for unminifed dist
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

A [Rehype](https://github.com/rehypejs/rehype) plugin for grouping code blocks with tabs, allowing you to switch between different code snippets easily. Perfect for documentation and tutorials where you want to show the same code in different languages or configurations.

> ** "This package is ***ESM*** only"
**Inspired by [Vitepress Code Groups](https://vitepress.dev/guide/markdown#code-groups)**

> **This plugin is versatile and can be used to create tabs for any type of content, not just code blocks. You can easily organize and display different types of content within tabs.**

## Features ✨

- Group code blocks with tabs
Expand Down
20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
"name": "rehype-code-group",
"version": "0.1.3",
"description": "A Rehype plugin for grouping code blocks with tabs, perfect for documentation and tutorials. Works with all Code Syntax Highlighters.",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"type": "module",
"files": ["dist", "src"],
"main": "dist/index.js",
"module": "dist/index.js",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"types": "dist/index.d.ts",
"type": "module",
"files": ["dist"],
"scripts": {
"run:example": "pnpm build && node example/index.js",
"build": "pnpm clean && rollup -c --bundleConfigAsCjs",
"build": "pnpm clean && tsc",
"clean": "rimraf dist",
"format": "biome format --write",
"lint": "biome check --fix",
Expand All @@ -37,17 +36,12 @@
"@biomejs/biome": "1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/hast": "^3.0.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.9.0",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"rimraf": "^6.0.1",
"rollup": "^4.25.0",
"simple-git-hooks": "^2.11.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
Expand Down
Loading

0 comments on commit 25e1245

Please sign in to comment.