Skip to content

Commit

Permalink
Playground improvements (theatre-js#342)
Browse files Browse the repository at this point in the history
Remove previews, add vs code task, open in chrome
  • Loading branch information
AndrewPrifer authored Nov 22, 2022
1 parent 484cfeb commit e3a194c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
"type": "shell",
"command": "yarn tsc --build --watch ./devEnv/typecheck-all-projects/tsconfig.all.json",
"problemMatcher": ["$tsc-watch"]
},
{
"type": "npm",
"script": "playground",
"problemMatcher": [],
"label": "Playground",
"detail": "yarn workspace playground run serve"
}
]
}
8 changes: 4 additions & 4 deletions packages/playground/devEnv/home/ItemSectionWithPreviews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const ItemSectionWithPreviews = (props: {
return (
<ItemContainer key={`li-${moduleName}`}>
<ItemLink href={href}>
<PreviewContainer>
{/* <PreviewContainer>
<iframe src={href} frameBorder="0" tabIndex={-1} />
</PreviewContainer>
</PreviewContainer> */}
<ItemDesc>
<h3>{moduleName}</h3>
<p>{href}</p>
Expand Down Expand Up @@ -80,9 +80,9 @@ const ItemContainer = styled.div`
`

const ItemListContainer = styled.div`
display: flex;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 2rem;
`
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/devEnv/openForOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {spawn} from 'child_process'

export function openForOS(hostedAt: string) {
const open = {
darwin: ['open'],
darwin: ['open', '-a', 'Google Chrome'],
linux: ['xdg-open'],
win32: ['cmd', '/c', 'start'],
}
Expand Down

0 comments on commit e3a194c

Please sign in to comment.