hybrid-platform-ui-core-components

UNIX name Owner Status
hybrid-platform-ui-core-components eZ Ecosystem stable
Version Compatible with
N/A N/A
Interested in this extension? Sponsor it!

hybrid-platform-ui-core-components

Provides the following custom elements used in the Hybrid Platform UI:

  • <ez-platform-ui-app>
  • <ez-navigation-hub>
  • <ez-toolbar>

In addition, this package provides a class expression mixin to add support for
tabs based on a specific markup. To use that expression mixin, you can write
something like:




With that, the tabs markup will be automatically recognized. ez-tabs.html also
provides the base CSS code so that the tabs visually behave as tabs. So with the
following code:





Some content

Some other content



You should see 2 tabs and should be able to switch from one to the other.

Developers tasks

System requirements:

  • Node >= 6.x (nvm
    is an easy way to get it running)
  • bower should be installed globally with npm install -g bower
  • before any of the following tasks, make sure the bower and npm dependencies are
    installed and up to date by running $ npm install
    $ bower install

Run unit tests

Using local browsers
$ npm run test-local

This will executes unit tests in local browsers.

To keep the test browsers open (and keep the test web server alive), you can add
the -p option:

$ npm run test-local -- -p
Using SauceLabs

First, create an account at https://saucelabs.com/ (It's free for Open Source
projects).
Then run the following commands:

$ export SAUCE_USERNAME="your_sauce_labs_username"
$ export SAUCE_ACCESS_KEY="your_sauce_labs_key"
$ npm run test-sauce

The unit tests should be run using the Sauce Labs infrastructure. Targeted
platforms/browsers are defined in wct.conf.json.

Run code style checks

$ npm run lint

Run local demo of components

$ npm run serve

This will run a local web server to serve the demo. After running that command,
it should display the URL to reach the demo.

Alternatively, you can execute:

$ npm run serve -- -o

to open the index page in the default browser.

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.