Skip to content

Commit 12d61d9

Browse files
committed
Add note about trying out Polaris
1 parent c92bad4 commit 12d61d9

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

apps/tutorial/app/components/highlight.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ export async function getHighlighter(): Promise<HLJSApi> {
1313
* since we now use hljs on initial page load, eagerly, we want to load
1414
* as little as possible
1515
*/
16-
let [hljs, glimmer, javascript, typescript, markdown, css] = await Promise.all([
16+
let [hljs, glimmer, javascript, typescript, markdown, css, bash] = await Promise.all([
1717
import('highlight.js/lib/core'),
1818
import('highlightjs-glimmer'),
1919
import('highlight.js/lib/languages/javascript'),
2020
import('highlight.js/lib/languages/typescript'),
2121
import('highlight.js/lib/languages/markdown'),
2222
import('highlight.js/lib/languages/css'),
23+
import('highlight.js/lib/languages/bash'),
2324
]);
2425

2526
HIGHLIGHT = hljs.default;
2627
HIGHLIGHT.registerLanguage('javascript', javascript.default);
2728
HIGHLIGHT.registerLanguage('typescript', typescript.default);
2829
HIGHLIGHT.registerLanguage('markdown', markdown.default);
2930
HIGHLIGHT.registerLanguage('css', css.default);
31+
HIGHLIGHT.registerLanguage('bash', bash.default);
3032

3133
glimmer.setup(HIGHLIGHT);
3234

apps/tutorial/public/docs/1-introduction/1-basics/prose.md

+22
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,25 @@ If you're an existing ember/glimmer user and are not yet using `<template>`, the
104104
```
105105

106106
For more information on "using anything as values", see [these docs](https://guides.emberjs.com/release/in-depth-topics/rendering-values/)
107+
108+
## How do I get started with a bleeding-edge Ember app today?
109+
110+
- For Webpack:
111+
```bash
112+
git clone --branch webpack git@github.com:NullVoxPopuli/polaris-starter.git
113+
cd polaris-starter
114+
pnpm install
115+
pnpm start
116+
```
117+
Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/webpack?file=README.md) (however, Stackblitz is [broken with Webpack](https://github.com/stackblitz/core/issues/2926) atm)
118+
119+
120+
- For Vite (alpha / unstable)
121+
```bash
122+
git clone git@github.com:NullVoxPopuli/polaris-starter.git
123+
cd polaris-starter
124+
pnpm install
125+
pnpm start
126+
```
127+
Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/main?file=README.md)
128+

0 commit comments

Comments
 (0)