Package Exports
- coveo-search-ui-extensions
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coveo-search-ui-extensions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
search-ui-extensions
This repository contains additionnal components meant to be used in conjunction with Coveo Javascript Search Framework to provide additionnal functionnalities.
Setup
Requires Node JS >= 8.0.
npm installnpm run build
Structure
The code is written in typescript and compiled using webpack.
Under the
pagesfolder, you have a working search page (index.html). At build time, it is copied to thebinfolder.- It references 2 style sheets (the base one from the Coveo Javascript Search Framework, and the one from the extension).
- It references 3 javascript file (the extension one built in this project, and the basic templates and library scripts).
Under the
srcfolder, you have all the typescript source code for the custom components, withsrc/Index.tsbeing the starting point of the application.Under the
src/sassfolder, you have all the css for the extension.Under the
testsfolder, you have all the tests for the custom components.
Build tasks
npm run setupwill copy the needed ressources (index.html,templates, etc.) in thebinfolder.npm run csswill build the sass files into a css file in thebinfolder.npm run buildwill run thesetup,csstask, then compile the typescript code.
Dev
npm run dev will start a webpack dev server. After it finishes, load http://localhost:8080/index.html in a browser, and the index.html page should load.
Then, anytime you hit save in a typescript file, the server will reload your application.
Tests
npm run testwill execute the tests one time and give you the reportnpm run watchTestwill watch changes and reexecute the tests and coverage when saving a file.