Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@klevn/jxc

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klevn/jxc

A javascript tool to compile tsx and jsx files to static index.html files on the server. It uses babel and a custom compiler.

  • 38.8.9
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

JXC

A javascript "framwork" to compile tsx and jsx files to static index.html files on the server. It uses Babel and a custom compiler.

Template setup proccess:

npx degit PowerKuu/templates/jxc <name> 

Manual setup proccess:

  • Create a new empty folder
mkdir x
cd x
  • Install JXC
npm install @klevn/jxc
  • Create a tsconfig file
{
    "compilerOptions": {
        "jsx": "preserve",
        "types": ["@klevn/jxc/src/types/jsx"]
    }
}
  • Create a routes folder
mkdir routes
cd routes
  • Create a home routes
mkdir home
cd home
  • Create a index.tsx file
export default () => {
    return <html lang="en">
        <head>
            <title>Document</title>
            <script>
                {
                    () => {
                        console.log("this is client side")
                    }
                }
            </script>
        </head>
        <body>
            <p>Hello world</p>
        </body>
    </html>
}
  • Build to static assets in the project root
cd ../..
npx @klevn/jxc build
  • Use modules css or regular classes
import styles from "./test.module.css.ts.js"

function Component() {
    return <p class={[styles.text]}></p>
}

Keywords

FAQs

Package last updated on 15 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc