mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
feat: import markdown-it-plugins from https://github.com/hedgedoc/markdown-it-plugins
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1d90013344
commit
f5736dad0f
37 changed files with 2025 additions and 0 deletions
34
markdown-it-plugins/build.sh
Executable file
34
markdown-it-plugins/build.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
echo "Clear dist directory.."
|
||||
rm -rf dist
|
||||
|
||||
echo "Compile to CJS.."
|
||||
tsc --project tsconfig.cjs.json
|
||||
|
||||
echo "Compile to ESM.."
|
||||
tsc --project tsconfig.esm.json
|
||||
|
||||
echo "Fix CJS package.json.."
|
||||
cat > dist/cjs/package.json <<!EOF
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
!EOF
|
||||
|
||||
echo "Fix ESM package.json.."
|
||||
cat > dist/esm/package.json <<!EOF
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
!EOF
|
||||
|
||||
echo "Done!"
|
Loading…
Add table
Add a link
Reference in a new issue