Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jul 19, 2024
0 parents commit 13c959d
Show file tree
Hide file tree
Showing 11 changed files with 2,366 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
22 changes: 22 additions & 0 deletions .luarc.json
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"
]
}
11 changes: 11 additions & 0 deletions _extensions/drop/_extension.yml
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
1 change: 1 addition & 0 deletions _extensions/drop/drop-runtime.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions _extensions/drop/drop-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions drop-runtime/build.ts
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);
}
Loading

0 comments on commit 13c959d

Please sign in to comment.