This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

r-search

0.0.0 • Public • Published

tui-search-frontend

requirements:

  • if tests should be run in phantomjs, it must be installed manually and must be included in the system PATH
  • phantomjs 2.0 should be used instead of version 1.9.8

OSx download url: https://github.com/eugene1g/phantomjs/releases

setup:

  1. npm install -g bower gulp
  2. npm install
  3. bower install
  4. bundle install (in cucumber directory)

gulp tasks:

  • gulp build:xxx to just compile app (xxx can be either dev, integration, prod)
  • gulp dev build app in build:dev mode and run local dev server
  • gulp dev:minified built app in build:dev with minified resources and run local dev server
  • gulp integrate build app in build:integration mode with minified resources and run a local integration server (proxies ttm-itest, but uses files from the local maschine)
  • gulp package:app build app in build:prod mode and package the application into one *.tar file which contains all relevant files for live deployment
  • gulp package:cucumber package all cucumber integration tests into one *.tar file
  • gulp test:units run unit tests and create code coverage report
  • gulp test:integration:xxx run integration tests on specified system (xxx can be either local, itest, stag, prod)

gulp options:

General options:

  • gulp <task> --minified minify css and js so that only 1 file per type is generated (automatically set for dev:minified and integrate tasks)

Integration test options:

  • gulp <task> --browser=xxx use specified browser to run integration tests (xxx can be either chrome, firefox, safari, phantomjs), chrome is used by default
  • gulp <task> --feature=xxx only use specified feature file to run integration tests (xxx is the path to the feature file, cucumber synctax with line number is possible)

How to integrate widget into a page?

  • make sure, widgetloader is also available

  • place following html code somewhere on the page

    <div class="tui-widget" data-widget="r-search" data-r-search></div>

    This will render an <input type="text"> with 100% width of the parent container.

cucumber tests

Example: cucumber --tag @itest PROFILE=tui.com.itest BROWSER=chrome

Readme

Keywords

none

Package Sidebar

Install

npm i r-search

Weekly Downloads

0

Version

0.0.0

License

none

Last publish

Collaborators

  • npm