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

(WIP, not for merging) Standalone WASM+native build of "bundle init" #2491

Draft
wants to merge 51 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
8f9635e
feat: Add main CLI entry point for WASM bundle initialization
denik Mar 13, 2025
f290418
feat: Add indented JSON output for template and render results
denik Mar 13, 2025
adfc063
Hack: standalone bundle init CLI, native & wasm
denik Mar 13, 2025
426a315
refactor: Rename formatJSON to RenderTemplate and parse JSON input
denik Mar 13, 2025
27a354a
fix: Remove unused renderFunc and undefined jsonFunc in WASM build
denik Mar 13, 2025
ab80d7f
feat: Add render button and template output display to index.html
denik Mar 13, 2025
2d849dc
feat: Enhance template rendering UI with JSON parsing and collapsible…
denik Mar 13, 2025
5e1f6b8
feat: Add file summary with total count and size to output
denik Mar 13, 2025
7b09af0
wip
denik Mar 13, 2025
982cbc2
feat: Add rendering time measurement to summary display
denik Mar 13, 2025
b1bfe2f
feat: Add syntax highlighting for Python and YAML files using Prism.js
denik Mar 13, 2025
10ee79d
feat: Enhance syntax highlighting with support for multiple file formats
denik Mar 13, 2025
46a512a
feat: Pre-open YAML files by default in file viewer
denik Mar 13, 2025
9a8bfda
feat: Add template name input field and support dynamic template sele…
denik Mar 13, 2025
6319b09
fix: Use provided template name instead of hardcoded default
denik Mar 13, 2025
cd742d3
refactor: simplify template handling and output in main_cli.go
denik Mar 13, 2025
efea237
feat: implement JSON parameter parsing in CLI with error handling
denik Mar 13, 2025
2e2d13d
wip
denik Mar 13, 2025
1c753a8
refactor: Modify loadHelpers to accept values map and add readValuesF…
denik Mar 13, 2025
61ede29
fix: Correct syntax error in readValuesFunc function
denik Mar 13, 2025
b003b00
allow overriding helpers like user_name
denik Mar 13, 2025
29812a4
pre open errors
denik Mar 13, 2025
c8b64ca
WIP; parameter passing works
denik Mar 13, 2025
696910f
feat: Add common parameters (helpers) input to template rendering int…
denik Mar 13, 2025
56f9265
update defaults
denik Mar 13, 2025
78ad800
add clean
denik Mar 13, 2025
5f06375
get rid of libs/filer and libs/git - they bring sdk dependency; size …
denik Mar 13, 2025
da2f5ea
add ldflags -w -s
denik Mar 13, 2025
4a02be8
disable inlining
denik Mar 13, 2025
71e238d
rewrite makefile; use optimized wasm
denik Mar 13, 2025
a481a15
fix: Add Prism language dependencies to resolve markdown component error
denik Mar 13, 2025
af179b8
fetch gzipped wasm and decompression using DecompressionStream
denik Mar 13, 2025
7e86f5f
clean up
denik Mar 13, 2025
091d06c
feat: Add URL hash-based parameter sharing for template renderer
denik Mar 13, 2025
90e3371
add 'make export'
denik Mar 13, 2025
f081538
Undo changes
denik Mar 13, 2025
dc0a303
refactor: Simplify clean target in Makefile to remove build directory
denik Mar 13, 2025
7a991ed
build: Reorganize Makefile to use build directory for generated files
denik Mar 13, 2025
3827551
cleanup
denik Mar 13, 2025
fd94535
clean up
denik Mar 13, 2025
12f2f59
update .gitignore
denik Mar 14, 2025
6220454
change title
denik Mar 14, 2025
ded49e2
rename experimental/render to experimental/template
denik Mar 14, 2025
62fc47f
rename wasm_bundle_init to wasm
denik Mar 14, 2025
df02864
clean up
denik Mar 14, 2025
3369c8c
refresh global uuid
denik Mar 14, 2025
6456e78
add RenderTemplateZip
denik Mar 14, 2025
e5d7fb7
feat: Add "Download ZIP" button with RenderTemplateZip functionality
denik Mar 14, 2025
6d8dc9a
feat: Update ZIP download filename to use template_project format
denik Mar 14, 2025
f3bf330
update 'make export' to git add & commit
denik Mar 14, 2025
7dfdfa9
create directory entries in zip
denik Mar 14, 2025
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
Prev Previous commit
Next Next commit
clean up
  • Loading branch information
denik committed Mar 13, 2025
commit 7e86f5f90015e45a65aa419a5d4a37f18af2a427
4 changes: 2 additions & 2 deletions wasm_bundle_init/index.html
Original file line number Diff line number Diff line change
@@ -343,10 +343,10 @@ <h1>Databricks Template Renderer</h1>
<h3>Template Name:</h3>
<input type="text" id="templateName" value="default-python" style="width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 5px; border: 1px solid #ddd;">

<h3>Template Parameters (JSON):</h3>
<h3>Template Parameters:</h3>
<textarea id="paramsInput"></textarea>

<h3>Common Parameters (helpers):</h3>
<h3>Common Parameters:</h3>
<textarea id="helpersInput"></textarea>
</div>