Skip to content
Draft
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
cc813f0
feat(Compilers): add basic support for ripple
hatemhosny Aug 29, 2025
bb8c04f
upgrade ripple, use default export
hatemhosny Aug 30, 2025
f0c18a7
add syntax highlighting for ripple in monaco
hatemhosny Aug 31, 2025
16eeddb
add support for CSS in Ripple components
hatemhosny Sep 1, 2025
085b3a3
fix typos in ripple syntax file
hatemhosny Sep 1, 2025
cd0045b
temporarily use latest published ripple version
hatemhosny Sep 1, 2025
b7a457c
prepare for ripple formatter
hatemhosny Sep 1, 2025
1dd4f75
minor fixes
hatemhosny Sep 1, 2025
3324ef9
add prettier-plugin-ripple
hatemhosny Sep 1, 2025
a6c6cce
update ripple formatter
hatemhosny Sep 1, 2025
4a8b37d
add ripple basic syntax highlight for codemirror and codejar
hatemhosny Sep 2, 2025
2c88177
use a workaround till ripple formatter is fixed
hatemhosny Sep 2, 2025
6d65af0
revert formatting workaround
hatemhosny Sep 2, 2025
813cbdd
add postFormat to parsers
hatemhosny Sep 2, 2025
db6a670
edit
hatemhosny Sep 2, 2025
24df424
add a todo comment
hatemhosny Sep 2, 2025
f3702a7
update ripple formatter and remove workaround
hatemhosny Sep 4, 2025
28387b9
allow changing ripple compiler version
hatemhosny Sep 4, 2025
20f8def
add ripple starter template
hatemhosny Sep 5, 2025
20a473d
compile styles in ripple components
hatemhosny Sep 5, 2025
ffffb1a
add docs for ripple support
hatemhosny Sep 5, 2025
dfe0702
fix
hatemhosny Sep 5, 2025
abd3e58
allow importing external ripple components
hatemhosny Sep 6, 2025
dbfe2e1
edit ripple docs
hatemhosny Sep 6, 2025
e62a259
upgrade ripple formatter
hatemhosny Sep 6, 2025
28592cd
feat(Compilers): add basic support for ripple
hatemhosny Sep 6, 2025
ffbdbfc
upgrade ripple, use default export
hatemhosny Sep 6, 2025
f9c3b47
add syntax highlighting for ripple in monaco
hatemhosny Sep 6, 2025
ce7fea3
add support for CSS in Ripple components
hatemhosny Sep 6, 2025
e2d6cea
fix typos in ripple syntax file
hatemhosny Sep 6, 2025
0c0b60e
temporarily use latest published ripple version
hatemhosny Sep 6, 2025
05d6552
prepare for ripple formatter
hatemhosny Sep 6, 2025
b2cf421
minor fixes
hatemhosny Sep 6, 2025
b324074
add prettier-plugin-ripple
hatemhosny Sep 6, 2025
224bdac
update ripple formatter
hatemhosny Sep 6, 2025
bea5b56
add ripple basic syntax highlight for codemirror and codejar
hatemhosny Sep 6, 2025
ec6838b
use a workaround till ripple formatter is fixed
hatemhosny Sep 6, 2025
fc56a41
revert formatting workaround
hatemhosny Sep 6, 2025
00683e9
add postFormat to parsers
hatemhosny Sep 6, 2025
a8ee0a9
edit
hatemhosny Sep 6, 2025
6d5f6d3
add a todo comment
hatemhosny Sep 6, 2025
765861f
update ripple formatter and remove workaround
hatemhosny Sep 6, 2025
0c1e45f
allow changing ripple compiler version
hatemhosny Sep 6, 2025
bba104d
add ripple starter template
hatemhosny Sep 6, 2025
7881b06
compile styles in ripple components
hatemhosny Sep 6, 2025
0887ab8
add docs for ripple support
hatemhosny Sep 6, 2025
defbe25
fix
hatemhosny Sep 6, 2025
d420059
allow importing external ripple components
hatemhosny Sep 6, 2025
56805b0
edit ripple docs
hatemhosny Sep 6, 2025
6848574
upgrade ripple formatter
hatemhosny Sep 6, 2025
eb71c13
Merge branch 'ripple' of https://github.com/live-codes/livecodes into…
hatemhosny Sep 6, 2025
a57b44a
use esm plugin for prettier
hatemhosny Sep 6, 2025
264033e
Merge branch 'develop' into ripple
hatemhosny Sep 8, 2025
b10c3c3
allow loading ripple compiler & formatter from pkg.pr.new
hatemhosny Sep 9, 2025
544dea0
fixes
hatemhosny Sep 12, 2025
971330a
Merge branch 'develop' into ripple
hatemhosny Sep 13, 2025
35d6186
Merge branch 'ripple' of https://github.com/live-codes/livecodes into…
hatemhosny Sep 13, 2025
6885b11
use filename `Component.ripple`
hatemhosny Sep 13, 2025
0d1a869
Merge branch 'develop' into ripple
hatemhosny Sep 18, 2025
b0ecd9b
fix ripple editor losing syntax highlighting
hatemhosny Sep 18, 2025
3126c4f
update ripple starter to use new reactivity syntax
hatemhosny Sep 21, 2025
ddb54e9
Merge branch 'develop' into ripple
hatemhosny Sep 23, 2025
0bed5bb
fix(Config): avoid unnecessarily reloading editors when changing them…
hatemhosny Sep 23, 2025
16d57df
add ripple language info and logo
hatemhosny Sep 24, 2025
fafc9a2
Merge branch 'develop' into ripple
hatemhosny Sep 24, 2025
2b71b23
run `i18n-export`
hatemhosny Sep 24, 2025
75b7334
Merge branch 'develop' into ripple
hatemhosny Sep 24, 2025
b91d192
Merge branch 'develop' into ripple
hatemhosny Sep 24, 2025
a0df890
update docs with new reactivity syntax
hatemhosny Sep 24, 2025
39b67f4
Merge branch 'ripple' of https://github.com/live-codes/livecodes into…
hatemhosny Sep 24, 2025
3b4c76d
Merge branch 'develop' into ripple
hatemhosny Sep 27, 2025
efdea7e
update ripple syntax
hatemhosny Sep 27, 2025
2234dc2
Merge branch 'develop' of https://github.com/live-codes/livecodes int…
hatemhosny Sep 27, 2025
a7f817f
fix ripple
hatemhosny Sep 27, 2025
4894b33
fix loading ripple formatter
hatemhosny Sep 28, 2025
0413d21
Merge branch 'develop' into ripple
hatemhosny Oct 1, 2025
6b00d82
fix loading ripple runtime version
hatemhosny Oct 2, 2025
5a0d428
fix ripple imports
hatemhosny Oct 4, 2025
d530d30
Merge branch 'develop' into ripple
hatemhosny Oct 5, 2025
fee8369
docs(SDK): add docs for using SDK in Ripple
hatemhosny Oct 7, 2025
d8ba8a5
Merge branch 'develop' into ripple
hatemhosny Oct 8, 2025
35de26b
Merge branch 'develop' of https://github.com/live-codes/livecodes int…
hatemhosny Oct 8, 2025
8bf2be9
add `ripple/bind`
hatemhosny Oct 8, 2025
2404bed
Merge branch 'ripple' of https://github.com/live-codes/livecodes into…
hatemhosny Oct 8, 2025
7eb2056
Merge branch 'develop' into ripple
hatemhosny Oct 8, 2025
dca57b7
clean up ripple examples in docs
hatemhosny Oct 8, 2025
4513aa7
Merge branch 'develop' into ripple
hatemhosny Oct 8, 2025
7a6fe48
edit sdk docs
hatemhosny Oct 8, 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
433 changes: 433 additions & 0 deletions docs/docs/languages/ripple.mdx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/src/components/LanguageSliders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function Sliders() {
{ name: 'solid.tsx', title: 'Solid (TS)' },
{ name: 'riot', title: 'Riot.js' },
{ name: 'malina', title: 'Malina.js' },
{ name: 'ripple', title: 'Ripple' },
{ name: 'coffeescript', title: 'CoffeeScript' },
{ name: 'livescript', title: 'LiveScript' },
{ name: 'civet', title: 'Civet' },
Expand Down
1 change: 1 addition & 0 deletions docs/src/components/TemplateList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const templates = [
{ name: 'astro', title: 'Astro Starter', thumbnail: 'astro.svg' },
{ name: 'riot', title: 'Riot.js Starter', thumbnail: 'riot.svg' },
{ name: 'malina', title: 'Malina.js Starter', thumbnail: 'malina.svg' },
{ name: 'ripple', title: 'Ripple Starter', thumbnail: 'ripple-0.png' },
{ name: 'jquery', title: 'jQuery Starter', thumbnail: 'jquery.svg' },
{ name: 'backbone', title: 'Backbone Starter', thumbnail: 'backbone.svg' },
{ name: 'knockout', title: 'Knockout Starter', thumbnail: 'knockout.svg' },
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default [
'**/.jest',
'**/.storybook',
'functions/vendors',
'src/livecodes/editor/monaco/languages/monaco-lang-ripple.ts',
],
},
...fixupConfigRules(
Expand Down
3 changes: 3 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const esmBuild = () =>
'editor/monaco/languages/monaco-lang-astro.ts',
'editor/monaco/languages/monaco-lang-clio.ts',
'editor/monaco/languages/monaco-lang-imba.ts',
'editor/monaco/languages/monaco-lang-ripple.ts',
// 'editor/monaco/languages/monaco-lang-sql.ts',
'editor/monaco/languages/monaco-lang-wat.ts',
'editor/codemirror/codemirror.ts',
Expand Down Expand Up @@ -237,6 +238,8 @@ const iifeBuild = () =>
'languages/python-wasm/lang-python-wasm-script.ts',
'languages/rescript/lang-rescript-formatter.ts',
'languages/riot/lang-riot-compiler.ts',
'languages/ripple/lang-ripple-compiler.ts',
'languages/ripple/lang-ripple-formatter.ts',
'languages/ruby-wasm/lang-ruby-wasm-script.ts',
'languages/scss/lang-scss-compiler.ts',
'languages/solid/lang-solid-compiler.ts',
Expand Down
1 change: 1 addition & 0 deletions src/livecodes/UI/command-menu-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export const getCommandMenuActions = ({
'preact',
'svelte',
'solid',
'ripple',
'lit',
'stencil',
'mdx',
Expand Down
Binary file added src/livecodes/assets/templates/ripple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/livecodes/compiler/import-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ export const isScriptImport = (mod: string) =>
mod.toLowerCase().endsWith('.vue') ||
mod.toLowerCase().endsWith('.svelte')));

const isStyleImport = (mod: string) =>
mod.toLowerCase().startsWith('./style') ||
mod.toLowerCase().endsWith('.css') ||
mod.toLowerCase().endsWith('.scss') ||
mod.toLowerCase().endsWith('.sass') ||
mod.toLowerCase().endsWith('.less') ||
mod.toLowerCase().endsWith('.styl');

const modulesCache: Record<string, string> = {};
const fetchModule = async (mod: string) => {
if (modulesCache[mod]) {
Expand Down Expand Up @@ -176,7 +184,7 @@ export const replaceSFCImports = async (
const isExtensionless = (mod: string) =>
mod.startsWith('.') && !mod.split('/')[mod.split('/').length - 1].includes('.');
const sfcImports = getImports(code).filter(
(mod) => isSfc(mod) || isExtensionless(mod) || mod.startsWith('.'),
(mod) => !isStyleImport(mod) && (isSfc(mod) || isExtensionless(mod) || mod.startsWith('.')),
);
const projectImportMap = {
...config.imports,
Expand Down
Loading