getting setup

This commit is contained in:
James Brumond 2023-04-30 19:12:19 -07:00
commit a936a2a32f
Signed by: james
GPG Key ID: E8F2FC44BAA3357A
7 changed files with 76 additions and 0 deletions

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
root = true
[*]
indent_size = 4
indent_style = tab
[*.{js,ts,css,html}]
indent_size = 4
indent_style = tab
[*.{md,json,jsonc,yml,yaml,sql}]
indent_size = 2
indent_style = space

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
build

2
bin/docs2website Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
node $(dirname $0)/docs2website.js $*

2
bin/docs2website.js Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../build/bin/docs2website.js');

29
package.json Normal file
View File

@ -0,0 +1,29 @@
{
"name": "@doc-utils/docs2website",
"version": "0.1.0",
"publishConfig": {
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
},
"scripts": {
"tsc": "tsc"
},
"bin": {
"docs2website": "./bin/docs2website"
},
"exports": "./build/index.js",
"devDependencies": {
"@types/dompurify": "^2.3.3",
"@types/jsdom": "^20.0.0",
"@types/katex": "^0.16.0",
"@types/luxon": "^3.1.0",
"@types/marked": "^4.0.3",
"@types/node": "^18.11.18",
"@types/prismjs": "^1.26.0",
"@types/qrcode": "^1.5.0",
"typescript": "^5.0.4"
},
"dependencies": {
"@doc-utils/markdown2html": "^0.1.0",
"yaml": "^2.2.2"
}
}

0
readme.md Normal file
View File

27
tsconfig.json Normal file
View File

@ -0,0 +1,27 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"outDir": "build",
"rootDir": "src",
"declaration": true,
"sourceMap": true,
"declarationMap": false,
"incremental": true,
"moduleResolution": "node",
"typeRoots": [
"node_modules/@types/"
],
"tsBuildInfoFile": "build/.tsbuildinfo",
"lib": [
"es2020"
]
},
"exclude": [
"node_modules",
"build"
],
"include": [
"src/**/*.ts"
]
}