admin-config-qikserve
v0.12.5
Published
# admin-config [![Build Status](https://travis-ci.org/marmelab/admin-config.svg?branch=master)](https://travis-ci.org/marmelab/admin-config)
Downloads
9
Readme
This repository is a fork of https://github.com/marmelab/admin-config
admin-config
Common files used in both ng-admin and ng-admin-react.
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' }
]
}
};
Transpiling
In order to increase this library compatibility and to not force other users of this
library to use Babel, you need to transpile your ES6 code from src/
to good old ES5
code (in lib/
).
Just run:
make transpile
And you are done!
Running Tests
make test