Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 967 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 967 Bytes

admin-config Build Status

Common files used in both ng-admin and react-admin.

Installation

make install

Including In Another Library

Require whatever class you need directly.

// es5
var NumberField = require('admin-config/lib/Field/NumberField');
// es6
import NumberField from "admin-config/lib/Field/NumberField";

Admin-config is written in ES6. You'll need a transpiler to use any of the classes (we recommend Webpack and babel). Here is an example Webpack configuration:

module.exports = {
    // ...
    module: {
        loaders: [
            { test: /node_modules\/admin-config\/.*\.js$/, loader: 'babel' }
        ]
    }
};

Running Tests

make test