chore(rehype-highlight-lines): Keep package private (for now)
This commit is contained in:
parent
fd8c11584f
commit
b29fc57717
7 changed files with 17 additions and 45 deletions
|
@ -151,6 +151,9 @@ rehype-jargon:
|
||||||
_:
|
_:
|
||||||
'unist-util-visit': '^4.1.0'
|
'unist-util-visit': '^4.1.0'
|
||||||
'hast-util-from-html': '^1.0.0'
|
'hast-util-from-html': '^1.0.0'
|
||||||
|
rehype-highlight-lines:
|
||||||
|
_:
|
||||||
|
'unist-util-remove': '^3.1.0'
|
||||||
simon:
|
simon:
|
||||||
peer:
|
peer:
|
||||||
'@freesewing/brian': *freesewing
|
'@freesewing/brian': *freesewing
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
noNamespace:
|
noNamespace:
|
||||||
- rehype-jargon
|
- rehype-jargon
|
||||||
|
- rehype-highlight-lines
|
||||||
customBuild:
|
customBuild:
|
||||||
- i18n
|
- i18n
|
||||||
- new-design
|
- new-design
|
||||||
- prettier-config
|
- prettier-config
|
||||||
- plugin-bundle
|
- plugin-bundle
|
||||||
- rehype-jargon
|
- rehype-jargon
|
||||||
|
- rehype-highlight-lines
|
||||||
skipTests:
|
skipTests:
|
||||||
- theo
|
- theo
|
||||||
packageJson:
|
packageJson:
|
||||||
|
@ -59,6 +61,8 @@ packageJson:
|
||||||
files:
|
files:
|
||||||
- index.json
|
- index.json
|
||||||
- package.json
|
- package.json
|
||||||
|
rehype-hightlight-lines:
|
||||||
|
private: true
|
||||||
sandy:
|
sandy:
|
||||||
author: AlfaLyr (https://github.com/alfalyr)
|
author: AlfaLyr (https://github.com/alfalyr)
|
||||||
tiberius: *starf
|
tiberius: *starf
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Change log for: @freesewing/rehype-highlight-lines
|
# Change log for: rehype-highlight-lines
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||

|

|
||||||
<p align='center'><a
|
<p align='center'><a
|
||||||
href="https://www.npmjs.com/package/@freesewing/rehype-highlight-lines"
|
href="https://www.npmjs.com/package/rehype-highlight-lines"
|
||||||
title="@freesewing/rehype-highlight-lines on NPM"
|
title="rehype-highlight-lines on NPM"
|
||||||
><img src="https://img.shields.io/npm/v/@freesewing/rehype-highlight-lines.svg"
|
><img src="https://img.shields.io/npm/v/rehype-highlight-lines.svg"
|
||||||
alt="@freesewing/rehype-highlight-lines on NPM"/>
|
alt="rehype-highlight-lines on NPM"/>
|
||||||
</a><a
|
</a><a
|
||||||
href="https://opensource.org/licenses/MIT"
|
href="https://opensource.org/licenses/MIT"
|
||||||
title="License: MIT"
|
title="License: MIT"
|
||||||
><img src="https://img.shields.io/npm/l/@freesewing/rehype-highlight-lines.svg?label=License"
|
><img src="https://img.shields.io/npm/l/rehype-highlight-lines.svg?label=License"
|
||||||
alt="License: MIT"/>
|
alt="License: MIT"/>
|
||||||
</a><a
|
</a><a
|
||||||
href="https://deepscan.io/dashboard#view=project&tid=2114&pid=2993&bid=23256"
|
href="https://deepscan.io/dashboard#view=project&tid=2114&pid=2993&bid=23256"
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
alt="Follow @freesewing_org on Twitter"/>
|
alt="Follow @freesewing_org on Twitter"/>
|
||||||
</a></p>
|
</a></p>
|
||||||
|
|
||||||
# @freesewing/rehype-highlight-lines
|
# rehype-highlight-lines
|
||||||
|
|
||||||
A Rehype plugin to add highlighted lines to code blocks
|
A Rehype plugin to add highlighted lines to code blocks
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ A Rehype plugin to add highlighted lines to code blocks
|
||||||
|
|
||||||
This repository is our *monorepo* holding all our NPM designs, plugins, other NPM packages, and (web)sites.
|
This repository is our *monorepo* holding all our NPM designs, plugins, other NPM packages, and (web)sites.
|
||||||
|
|
||||||
This folder holds: @freesewing/rehype-highlight-lines
|
This folder holds: rehype-highlight-lines
|
||||||
|
|
||||||
If you're not entirely sure what to do or how to start, type this command:
|
If you're not entirely sure what to do or how to start, type this command:
|
||||||
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
/* This script will build the package with esbuild */
|
|
||||||
import esbuild from 'esbuild'
|
|
||||||
import pkg from './package.json' assert { type: 'json' }
|
|
||||||
|
|
||||||
// Create banner based on package info
|
|
||||||
const banner = `/**
|
|
||||||
* ${pkg.name} | v${pkg.version}
|
|
||||||
* ${pkg.description}
|
|
||||||
* (c) ${new Date().getFullYear()} ${pkg.author}
|
|
||||||
* @license ${pkg.license}
|
|
||||||
*/`
|
|
||||||
|
|
||||||
// Shared esbuild options
|
|
||||||
const options = {
|
|
||||||
banner: { js: banner },
|
|
||||||
bundle: true,
|
|
||||||
entryPoints: ['src/index.mjs'],
|
|
||||||
format: 'esm',
|
|
||||||
outfile: 'dist/index.mjs',
|
|
||||||
external: ['@freesewing'],
|
|
||||||
metafile: process.env.VERBOSE ? true : false,
|
|
||||||
minify: process.env.NO_MINIFY ? false : true,
|
|
||||||
sourcemap: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Let esbuild generate the build
|
|
||||||
let result
|
|
||||||
;(async () => {
|
|
||||||
result = await esbuild.build(options).catch(() => process.exit(1))
|
|
||||||
|
|
||||||
if (process.env.VERBOSE) {
|
|
||||||
const info = await esbuild.analyzeMetafile(result.metafile)
|
|
||||||
console.log(info)
|
|
||||||
}
|
|
||||||
})()
|
|
|
@ -1,4 +1,4 @@
|
||||||
// This file is auto-generated | All changes you make will be overwritten.
|
// This file is auto-generated | All changes you make will be overwritten.
|
||||||
export const name = '@freesewing/rehype-highlight-lines'
|
export const name = 'rehype-highlight-lines'
|
||||||
export const version = '3.0.0-alpha.2'
|
export const version = '3.0.0-alpha.2'
|
||||||
export const data = { name, version }
|
export const data = { name, version }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@freesewing/rehype-highlight-lines",
|
"name": "rehype-highlight-lines",
|
||||||
"version": "3.0.0-alpha.2",
|
"version": "3.0.0-alpha.2",
|
||||||
"description": "A Rehype plugin to add highlighted lines to code blocks",
|
"description": "A Rehype plugin to add highlighted lines to code blocks",
|
||||||
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
|
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue