-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 13c959d
Showing
11 changed files
with
2,366 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"Generator": [ | ||
"Quarto", | ||
"This file provides type information for Lua completion and diagnostics.", | ||
"Quarto will automatically update this file to reflect the current path", | ||
"of your Quarto installation, and the file will also be added to .gitignore", | ||
"since it points to the absolute path of Quarto on the local system.", | ||
"Remove the 'Generator' key to manage this file's contents manually." | ||
], | ||
"Lua.runtime.version": "Lua 5.3", | ||
"Lua.workspace.checkThirdParty": false, | ||
"Lua.workspace.library": [ | ||
"/Applications/quarto/share/lua-types" | ||
], | ||
"Lua.runtime.plugin": "/Applications/quarto/share/lua-plugin/plugin.lua", | ||
"Lua.completion.showWord": "Disable", | ||
"Lua.completion.keywordSnippet": "Both", | ||
"Lua.diagnostics.disable": [ | ||
"lowercase-global", | ||
"trailing-space" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
title: Quarto Drop | ||
author: George Stagg | ||
version: 0.1.0-dev | ||
quarto-required: ">=1.3.0" | ||
contributes: | ||
revealjs-plugins: | ||
- name: RevealDrop | ||
script: | ||
- drop-runtime.js | ||
stylesheet: | ||
- drop-runtime.css |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { build, context, BuildOptions } from 'esbuild'; | ||
import process from 'process'; | ||
|
||
let watch = false; | ||
if (process.argv.includes("--watch")) { | ||
watch = true; | ||
} | ||
|
||
const external = [ | ||
'node:fs', | ||
'node:path', | ||
'node:url', | ||
] | ||
|
||
const options: BuildOptions = { | ||
entryPoints: ['./src/drop-runtime.ts'], | ||
external, | ||
bundle: true, | ||
outdir: '../_extensions/drop', | ||
minify: true, | ||
loader: { '.svg': 'text' }, | ||
platform: 'browser', | ||
format: 'esm', | ||
logLevel: 'info', | ||
}; | ||
|
||
if (watch) { | ||
const ctx = await context(options); | ||
await ctx.watch(); | ||
} else { | ||
await build(options); | ||
} |
Oops, something went wrong.