glass-core
v1.0.0-eagle-97
Published
Informatica's OpsInsight's Glass UI Library
Downloads
198
Readme
Glass Core
- Component only repository, which will be a
dependency
inglass platform
Initial Setup
Requirements
- Download latest Node version. Current Version: 10.15.0 (includes npm 6.4.1)
- npm version 6.4.1
Workspace setup
Sync //OpsInsight/Eagle/ui/glass/core
to your perforce workspace and then run:
cd path/to/OpsInsight/Eagle/ui/glass/core/
npm i
IDE Setup
We recommend using Visual Studio Code, but WebStorm may work as well.
Useful VSCode Plugins
- Auto Close Tag - Visual Studio Marketplace
- Bracket Pair Colorizer - Visual Studio Marketplace
- EditorConfig for VS Code - Visual Studio Marketplace
- ESLint - Visual Studio Marketplace
- Flow Language Support - Visual Studio Marketplace
- Path Autocomplete - Visual Studio Marketplace
- Perforce for VS Code - Visual Studio Marketplace
- PostCSS syntax - Visual Studio Marketplace
- Prettier - Code formatter - Visual Studio Marketplace
Running Unit Tests
Coverage reports will be generated under //OpsInsight/Eagle/ui/glass/core/coverage/
after running the following command:
cd path/to/OpsInsight/Eagle/ui/glass/core
npm test
Running Local Setup with Dev Server
After you have run npm i
command just execute npm start
to start up a dev server.
cd path/to/OpsInsight/Eagle/ui/glass/core
npm start
Publishing glass-core to NPM
Following are the steps to publish glass-core to a repository:
- Prerequisite: Take latest from depot to glass folder itself.
../../glass/
- We need to run build first: This will copy latest files from
../platform/
folder to./target/
folder. - Check
"publishConfig": { "registry": "https://registry.npmjs.org/" }
in package.json. This is repository URL where app will be published. Currently, we are publishing to npm. We will change it to anInformatica
repository soon. - Update
version
inpackage.json
- Now login to npm:
npm login
- Provide username and password for npm: Current username:
iamarmishra
- Provide any email address & then run:
npm publish:app