catwalk-ui

0.1.0 • Public • Published

catwalk-ui

catwalk-ui is the UI layer for the Catwalk framework, allowing easy creation of user interfaces for viewing and editing a data model, that stay up to date with any changes in that model.

Installation

npm install catwalk catwalk-ui

catwalk-ui works best when JSX support is set up, to allow defining UI components using HTML-like syntax. To do this on a Webpack-based project:

npm install --save-dev babel-loader @babel/core @babel/plugin-transform-react-jsx-development @babel/preset-env

Then, in webpack.config.js, add a rule for .js files with the @babel/plugin-transform-react-jsx plugin configured as follows:

  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ["@babel/preset-env"],
            plugins: [
              [
                "@babel/plugin-transform-react-jsx",
                {
                  "importSource": "catwalk-ui",
                  "runtime": "automatic",
                }
              ]
            ],
          },
        },
      },
    ],
  },

Readme

Keywords

none

Package Sidebar

Install

npm i catwalk-ui

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

41.4 kB

Total Files

16

Last publish

Collaborators

  • gasman