rodunj

0.10.0 • Public • Published

Rodunj /rəʊduŋ/

optimizes JSX by precompiling static HTML, reducing cycles required at runtime

<Section title={caption}>
    <dl class="glossary">
        <dt>{term}</dt>
        {definitions.map(desc => (
            <dd>{desc}</dd>
        ))}
    </dl>
</Section>

is converted to plain JavaScript:

[
    Section({ title: caption },
            '<dl class="glossary"> <dt>',
            term,
            "</dt>",
            definitions.map(desc => [
                "<dd>", desc, "</dd>"
            ]),
            "</dl>")
]

(approximation for readability)

Contributing

  • ensure Node is installed
  • npm install downloads dependencies
  • npm test runs the test suite and checks code for stylistic consistency

Release Process

NB: version numbers are incremented in accordance with semantic versioning

  1. update version number in package.json

  2. commit as "v#.#.#"

     $ git commit -m "v`node -p -e 'require("./package.json").version'`"
    

    the commit description should also include a rationale, e.g. why a major version was required, and a list of significant changes

  3. ./release publishes the new version

Readme

Keywords

none

Package Sidebar

Install

npm i rodunj

Weekly Downloads

0

Version

0.10.0

License

Apache-2.0

Unpacked Size

36.2 kB

Total Files

33

Last publish

Collaborators

  • fnd