From 0e5ddcc9b8d81901a7ab5fb5c3e7d25446cc11ea Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:00:53 -0500 Subject: [PATCH 1/5] Add note about trying out Polaris --- .../app/components/prose/highlight.ts | 4 +++- .../docs/1-introduction/1-basics/prose.md | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/apps/tutorial/app/components/prose/highlight.ts b/apps/tutorial/app/components/prose/highlight.ts index 756338594..ac3a9a43d 100644 --- a/apps/tutorial/app/components/prose/highlight.ts +++ b/apps/tutorial/app/components/prose/highlight.ts @@ -13,13 +13,14 @@ export async function getHighlighter(): Promise { * since we now use hljs on initial page load, eagerly, we want to load * as little as possible */ - let [hljs, glimmer, javascript, typescript, markdown, css] = await Promise.all([ + let [hljs, glimmer, javascript, typescript, markdown, css, bash] = await Promise.all([ import('highlight.js/lib/core'), import('highlightjs-glimmer'), import('highlight.js/lib/languages/javascript'), import('highlight.js/lib/languages/typescript'), import('highlight.js/lib/languages/markdown'), import('highlight.js/lib/languages/css'), + import('highlight.js/lib/languages/bash'), ]); HIGHLIGHT = hljs.default; @@ -27,6 +28,7 @@ export async function getHighlighter(): Promise { HIGHLIGHT.registerLanguage('typescript', typescript.default); HIGHLIGHT.registerLanguage('markdown', markdown.default); HIGHLIGHT.registerLanguage('css', css.default); + HIGHLIGHT.registerLanguage('bash', bash.default); glimmer.setup(HIGHLIGHT); diff --git a/apps/tutorial/public/docs/1-introduction/1-basics/prose.md b/apps/tutorial/public/docs/1-introduction/1-basics/prose.md index d73bcf3c3..b1e0f0acd 100644 --- a/apps/tutorial/public/docs/1-introduction/1-basics/prose.md +++ b/apps/tutorial/public/docs/1-introduction/1-basics/prose.md @@ -124,3 +124,25 @@ However, because there are a number of more foundational concepts to cover, this [Signals]: https://www.solidjs.com/tutorial/introduction_signals [Runes]: https://svelte.dev/blog/runes [tracked]: https://guides.emberjs.com/release/components/component-state-and-actions/#toc_tracked-properties + +## How do I get started with a bleeding-edge Ember app today? + +- For Webpack: + ```bash + git clone --branch webpack git@github.com:NullVoxPopuli/polaris-starter.git + cd polaris-starter + pnpm install + pnpm start + ``` + Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/webpack?file=README.md) (however, Stackblitz may be [broken with Webpack](https://github.com/stackblitz/core/issues/2926) atm) + + +- For Vite (alpha / unstable) + ```bash + git clone git@github.com:NullVoxPopuli/polaris-starter.git + cd polaris-starter + pnpm install + pnpm start + ``` + Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/main?file=README.md) + From 791cab422cb9e21d609328bb7d726d5f6eb86748 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:33:38 -0500 Subject: [PATCH 2/5] Update prose.md --- apps/tutorial/public/docs/1-introduction/1-basics/prose.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tutorial/public/docs/1-introduction/1-basics/prose.md b/apps/tutorial/public/docs/1-introduction/1-basics/prose.md index b1e0f0acd..cd1d84af3 100644 --- a/apps/tutorial/public/docs/1-introduction/1-basics/prose.md +++ b/apps/tutorial/public/docs/1-introduction/1-basics/prose.md @@ -107,6 +107,7 @@ If you're an existing ember/glimmer user and are not yet using `