Installation

If cui.js is not already included by your App’s framework, you need to install it manually.

Steps

  1. Go to your project’s root directory.

  2. Make sure you have npm and node.js installed.

  3. Install cui.js from NPM.

    npm i @covisint/cui.js --save
    
  4. Install the cui.js dependencies (jquery and lodash) in your project.

    bower install jquery --save
    bower install lodash --save
    
  5. Add script tags to your App’s html header:

    <script src="/bower_components/lodash/dist/lodash.min.js"></script>
    <script src="/bower_components/jquery/dist/jquery.min.js"></script>
    <script src="/node_modules/@covisint/cui.js/dist/cui.min.js"></script>
    

Updating

Once cui.js is installed, it is easy to update the version.

Steps

  1. Go to your project’s root directory.
  2. Stop any running build tools (grunt, gulp, etc.)
  3. Update cui.js from NPM.
    npm u @covisint/cui.js
    
  4. Restart build tool.