Skip to content
Discussion options

You must be logged in to vote

Compiling it to js with babel and then running it with node afterwards seems to work

babel.config.json

{
  "plugins": [
    [
      "@danielx/civet/babel-plugin"
    ]
  ],
  "presets": [
    "@babel/preset-react"
  ],
  "sourceMaps": "inline"
}

npm script:

"dev": "babel -x \".civet\" --out-dir=dist --watch App.civet"

example App.civet component

import React from 'react'
import { Text, render } from 'ink'

Greeting := () => 
  return (
    <Text>Hello</Text>
  );


render (<Greeting />)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by miloslavnosek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant