getting setup
This commit is contained in:
commit
a936a2a32f
14
.editorconfig
Normal file
14
.editorconfig
Normal 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
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
build
|
2
bin/docs2website
Executable file
2
bin/docs2website
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
node $(dirname $0)/docs2website.js $*
|
2
bin/docs2website.js
Executable file
2
bin/docs2website.js
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
require('../build/bin/docs2website.js');
|
29
package.json
Normal file
29
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
27
tsconfig.json
Normal file
27
tsconfig.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user