mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
Add Javascript Examples Support (#5722)
* chore: moved all ts files for examples to examples/ts * add: tsc to eject js and jsx output * example: add js transpiled examples * example: update example site to show both js and ts code * chore: fix yarn lint * fix(example): getAllExamplesPath
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { readdirSync } from 'fs'
|
||||
import { join } from 'path'
|
||||
|
||||
const examplePath = join(process.cwd(), 'examples')
|
||||
const examplePath = join(process.cwd(), 'examples/ts')
|
||||
|
||||
export function getAllExamples() {
|
||||
const slugs = readdirSync(examplePath)
|
||||
|
Reference in New Issue
Block a user