Skip to content

Commit

Permalink
migrating to a pnpm workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jcayzac committed Aug 17, 2024
1 parent 17a2953 commit 13f5a91
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 2 deletions.
21 changes: 21 additions & 0 deletions packages/shiki-transformer-token/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Julien Cayzac

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# `@jcayzac/shiki-transformer-token`

TODO
This [Shiki transformer](https://shiki.style/guide/transformers) is to be used together with [`@jcayzac/shiki-transformer-token`](https://www.npmjs.com/package/@jcayzac/shiki-transformer-token).

> [!WARNING]
> Used alone, this transformer is non-functional, as it will pollute your output with useless HTML attributes.
## Installation

Expand All @@ -21,6 +24,10 @@ yarn add @jcayzac/shiki-transformer-token
deno add npm:@jcayzac/shiki-transformer-token
```

## Usage

See [the theme's documentation](https://github.com/jcayzac/copepod-modules/blob/main/packages/astro-theme-token/README.md#usage).

## Like it? Buy me a coffee!

If you like anything here, consider buying me a coffee using one of the following platforms:
Expand Down
File renamed without changes.
53 changes: 53 additions & 0 deletions packages/shiki-transformer-token/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@jcayzac/shiki-transformer-token",
"type": "module",
"version": "0.1.0",
"description": "Shiki transformer to enable more semantic styling.",
"author": "Julien Cayzac",
"license": "MIT",
"funding": "https://github.com/sponsors/jcayzac",
"homepage": "https://github.com/jcayzac/copepod-modules/tree/main/shiki-transformer-token#readme",
"repository": {
"type": "git",
"url": "github:jcayzac/copepod-modules",
"directory": "packages/shiki-transformer-token"
},
"bugs": "https://github.com/jcayzac/copepod-modules/issues",
"keywords": [
"shiki",
"transformer",
"shiki-transformer",
"semantic",
"unstyled"
],
"sideEffects": false,
"publishConfig": {
"access": "public",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
}
},
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"main": "./src/index.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild --minify --sourcemap",
"prepublishOnly": "npm run build",
"lint": "eslint .",
"check": "tsc --noEmit"
},
"peerDependencies": {
"@shikijs/core": "^1.13.0"
},
"devDependencies": {
"@shikijs/core": "^1.13.0",
"@types/hast": "^3.0.4",
"@types/unist": "^3.0.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* other transformers may add extra styles.
*/

import type { ShikiTransformer } from 'shiki'
import type { ShikiTransformer } from '@shikijs/core'
import type { Element, Node } from 'hast'

function transformer(): ShikiTransformer {
Expand Down
File renamed without changes.
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.

0 comments on commit 13f5a91

Please sign in to comment.