Documentation page can be accessed via this link: https://ui-framework.superdesk.org/
To install the package via npm use
npm install --save superdesk-ui-framework
After installation, the ui-framework distributive files will be available as
import 'superdesk-ui-framework'
To use it in your angular-app you should add the module (modules)
angular.module('application', ['superdesk-ui'])
To import react modules in your application, just use
import {LineInput} from 'superdesk-ui-framework'
git clone https://github.com/superdesk/superdesk-ui-framework
npm install
to install dependenciesnpm start
to run server locallylocalhost:9100
your-playground.html
file in examples/playgrounds
examples/index.js
:
.when('/playground/your-playground', {
title: 'My Playground',
playground: 'main', // can be publisher or react also
template: require('../examples/playgrounds/your-playground.html')
})
If you want to develop new components and see live changes on your project, you need to link superdesk-ui-framework
with your project.
superdesk-ui-framework
project folder run npm link
npm link superdesk-ui-framework
superdesk-ui-framework
with npm run server
command.Runing e2e&unit
tests
npm run lint