kraken-devtools-jsx

0.0.2 • Public • Published

kraken-devtools-jsx

Build Status

jsx plugin for kraken-devtools

Compile React's jsx on-the-fly when building kraken based express applications. This kraken-devtools plugin, finds all the .jsx files in the given source directory and desugars them to simple Javascript to be used with React.

Usage

in kraken middleware config file

    "middleware"{
        "devtools": {
            "enabled": true,
            "priority": 35,
            "module": {
                "name": "kraken-devtools",
                "arguments": [
                    "path:./src_path",
                    "path:./destination_path",
                    {
                        "jsx": {
                            "module": "kraken-devtools-jsx",
                            "files": "destination_path_for_jsx/*.js"
                        }
                    }
                ]
            }
        }
    }

Package Sidebar

Install

npm i kraken-devtools-jsx

Weekly Downloads

10

Version

0.0.2

License

MIT

Last publish

Collaborators

  • samsel