|
2 роки тому | |
---|---|---|
.. | ||
build | 2 роки тому | |
css | 2 роки тому | |
js | 2 роки тому | |
node_modules | 2 роки тому | |
stylesheets | 2 роки тому | |
Dockerfile | 2 роки тому | |
Jenkinsfile | 2 роки тому | |
README.md | 2 роки тому | |
asap.log.txt | 2 роки тому | |
gpConfig.json | 2 роки тому | |
gpipe | 2 роки тому | |
jest.config.js | 2 роки тому | |
pipeline.properties | 2 роки тому | |
pull_request_template.md | 2 роки тому | |
sonar-project.properties | 2 роки тому | |
tsconfig.dev.json | 2 роки тому | |
tsconfig.json | 2 роки тому |
Glass is an application framework that provides strong separation of concerns between components and a fully extensible UI at runtime. An example of this is glass-foundation, which implements Glass to provide the foundation for the IBM Cognos Analytics product.
ba-glass-client is the repository which contains the client code for the Glass framework. Specifically, the primary purpose of ba-glass-client is to build a corresponding UI given a specification returned by the perspectives/{perspectiveName}
endpoint of ba-glass-server.
ba-glass-client can be utilized by specifying it as an npm dependency i.e. @waca/baglass: x.x.x
. ba-glass-client ships with bundled and unbundled source code, as well as a third party dependency bundle which contains all third party dependencies required by glass. ba-glass-client intends to work immediately out of the box while also allowing more advanced users full control to customize as required.
ba-glass-client currently runs on node v10.16.2
To build glass locally, run the following commands in the root directory after cloning the ba-glass-client repository:
npm install
npm run build
ba-glass-client currently runs a combination of Intern Intern and Jest tests. To run the intern tests, you will need to install Selenium as well as this ChromeDriver.
To run the tests, execute the following command:
npm run test
ba-glass-client runs on the ASAP pipeline, whose build can be found here. Artifacts are published to this location, and are automatically made available via npm.
Travis is utilized to gate PRs, which in turn builds ba-glass-client and ensures all tests and linting rules are correct.
We are currently taking advantage of the new globalization pipeline to do our translations pipeline-wiki
In order to run translations locally, you will need the following credentials:
# ~/gpCred.json
this file in your home directory will need a pipeline credential
one can be provided by team members or from the ca-glob-support slack channel
The following in your bash profile:
export GIT_TOKEN="your git token"
export W3_USERNAME="your.email@ibm.com"
export W3_PASSWORD="yourW3Password"
To run translations you will need to execute the following commands:
npm run translate-files
This will download machine translated files and request human translations. When human translations are ready, they can be downloaded by running:
npm run download-human-translations
In the case you receive a warning that the translation bundles are missing (they shouldn't be), you can run the following:
npm run create-translation-bundle
The sonar report for ba-glass-client can be found here.