This project was bootstrapped with Create React App, please take a look at their README (make sure it matches your version of react-scripts).
The project serves two purposes:
There are multiple ways to add ActiveUI as a dependency of this project. Please refer to the ActiveUI documentation for more details.
By default, the
package.json of this project points to an ActiveUI tgz file located in the ActiveUI sandbox root folder.
The project can be installed using any node package manager like npm or Yarn, by running the appropriate command (
npm install or
yarn install). By default, during the postinstall phase, the “locales” and “tutorial” assets are copied inside the project. Once you don’t need them anymore, don’t forget to update the postinstall script to only copy the needed files.
The following commands are available:
npm start: Runs the app in the development mode.
npm test: Launches the test runner in the interactive watch mode.
npm run build: Builds the app for production to the build folder.
Once the application is bundled, you may want to change some of your default parameters like the log level or the main Content Server URL depending on the environment on which ActiveUI is deployed.
In order to do so without having to re-bundle the application, you can use the
window.env without being bundled.
src/activeui.js for an example of how it can be used.
For projects targeting old browsers not implementing ES2015
Symbol, such as Internet Explorer 11 and below, a
Symbol polyfill must be imported before any other import – specifically before React, React-DOM and ActiveUI.
The Symbol polyfill we recommend is babel-polyfill.
You can set it up by running
npm install --save babel-polyfill and then adding the line
import 'babel-polyfill'; to the very top of your
For more information, see this React GitHub issue.