Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add folding headings extension #1

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@

# libraries
npm-debug.log

index.js
index.js.map
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src
esbuild
example
20 changes: 0 additions & 20 deletions esbuild/build.js

This file was deleted.

38 changes: 38 additions & 0 deletions esbuild/build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env node

import {build} from 'esbuild';
import {sassPlugin} from 'esbuild-sass-plugin';

import tsConfig from '../tsconfig.json' assert { type: "json" };

const outDir = 'build/';

/** @type {import('esbuild').BuildOptions}*/
const common = {
bundle: true,
sourcemap: true,
target: tsConfig.compilerOptions.target,
tsconfig: './tsconfig.json',
};

/** @type {import('esbuild').BuildOptions}*/
const runtime = {
...common,
entryPoints: ['src/runtime/index.ts'],
outfile: outDir + 'runtime/index.js',
minify: true,
platform: 'browser',
plugins: [sassPlugin()],
};

/** @type {import('esbuild').BuildOptions}*/
const plugin = {
...common,
entryPoints: ['src/plugin/index.ts'],
outfile: outDir + 'plugin/index.js',
platform: 'node',
packages: 'external',
}

build(runtime);
build(plugin);
Loading
Loading