Skip to content

Commit

Permalink
add folding headings extension (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Jul 11, 2024
1 parent 3a7b724 commit 669b4b1
Show file tree
Hide file tree
Showing 22 changed files with 2,079 additions and 150 deletions.
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

0 comments on commit 669b4b1

Please sign in to comment.