
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@hmcts/ccd-case-ui-toolkit
Advanced tools
# Install all dependencies
yarn install
# Create symbolic link
yarn link
# Build library in watch mode
yarn build:watch
In your project folder that should consume the library:
# Go to consumer repository folder
cd case-management-web
# Link you library to the project
yarn link "@hmcts/ccd-case-ui-toolkit"
yarn start
Note: The linking might be broken so if your encounter problems please follow this process:
# Install all dependencies
yarn install
# Build library in watch mode
yarn build:watch
In you project folder that should consume the library:
# Go to consumer repository folder
cd case-management-web
# Remove existing toolkit dist
rm -rf node_modules/\@hmcts/ccd-case-ui-toolkit/dist
# Link you library to the project
cp <location of ccd-case-ui-toolkit>/dist node_modules/\@hmcts/ccd-case-ui-toolkit
yarn start
You can also have a quick look at an example usage of the UI Toolkit demo project (after both folders had yarn install ran on them) by:
# Build the toolkit and fire up the demo application to view it
yarn demo
Broken down into individual steps, this does the following:
# build UI Toolkit
yarn build:esm
# copy UI Toolkit dist folder to demo/node_modules/@hmcts/ccd-case-ui-toolkit/dist
yarn build:demo
# start demo app and stub server in same process
yarn start
# Go to http://localhost:8080
case-ui-toolkit
|
ββ demo - Self documenting application consuming components from src/shared/components
| ββ src - Application sources folder
| | ββ app - Components and modules implementing application
| | ββ public - Fonts and images for application
| | ββ style - Styles for application
| | ββ index.html - Index page of application
| | ββ main.ts - Application initialisation logic
| | ββ tsconfig.app.js - Src folder typescript options to compile with
| ββ stubs - Back end stubs the application starts off
| ββ angular.js - Angular options to configure the application
| ββ gulpfile.js - Gulp tasks to copy the built ui toolkit library to demo application
| ββ heroku-publish.js - Script that deploys demo application latest master to Heroku
| ββ package.json - yarn dependencies, scripts and package configuration for demo application
| ββ README.md - README for the demo app
| ββ server.js - Demo application startup script.
| ββ tsconfig.js - Typescript base options that different config files derive from
| ββ yarn.lock - File storing locked down dependencies for consistent installs
|
ββ src - Library sources home folder
| ββ scripts - Contains CI/Release related scripts
| ββ components - Basic building blocks components with tests for CCD
| ββ shared - Folder containing exportable components and directives that are shared with library consumers
| | ββ components - Components that are meant to be shared with library consumers (e.g. ExUI)
| | | ββ<component> - Example component
| | | | ββ domain - Component specific domain structures
| | | | ββ services - Component specific services
| | | | ββ <component files> - Template, Component, Module and index files
| | ββ directives - Directives that are meant to be shared with library consumers (e.g. ExUI)
| | | ββ<directive> - Example directive
| | | | ββ domain - Directive specific domain structures
| | | | ββ services - Directive specific services
| | | | ββ <directive files> - Template, Component, Module and index files
| | ββ domain - Domain structures that are used by shared components and directives
| | ββ fixture - Test domain builders and fixtures for shared components and directives
| | ββ pipes - Pipes for shared components and directives
| | ββ services - Common services for shared components and directives
| | ββ test - Other test helpers
| ββ index.ts - Library entry point that is used by builders
|
ββ .editorconfig - Common IDE configuration
ββ .gitignore - List of files that are ignored while publishing to git repo
ββ .npmignore - List of files that are ignored while publishing to npmjs
ββ .travis.yml - Travis CI configuration
ββ LICENSE.md - License details
ββ README.md - README for the library
ββ gulpfile.js - Gulp helper scripts
ββ karma-test-entry.ts - Entry script for Karma tests
ββ karma.conf.ts - Karma configuration for our unit tests
ββ package.json - yarn dependencies, scripts and package configuration
ββ tsconfig-aot.json - TypeScript configuration for AOT build
ββ tsconfig.json - TypeScript configuration for UMD and Test builds
ββ tslint.json - TypeScript linting configuration
ββ webpack-test.config.js - Webpack configuration for building test version of the library
ββ webpack-umd.config.ts - Webpack configuration for building UMD bundle
ββ yarn.lock - yarn lock file that locks dependency versions
yarn build for building the library once (both ESM and AOT versions).yarn build:watch for building the library (both ESM and AOT versions) and watch for file changes.You may also build UMD bundle and ESM files separately:
yarn build:esm - for building AOT/JIT compatible versions of files.yarn build:esm:watch - the same as previous command but in watch-mode.yarn build:umd - for building UMD bundle only.yarn build:umd:watch - the same as previous command but in watch-mode.For CCD developers it should be noted the library should be built with just the yarn build:esm which is much faster. That will build the JIT version that is currently used by case management web.
yarn test for running all your *.spec.ts tests once. Generated code coverage report may be found in coverage folder.yarn test:watch for running all you *.spec.ts and watch for file changes.In order to debug your library in browser you need to have Angular project that will consume your library, build the application and display it. For your convenience all of that should happen automatically in background so once you change library source code you should instantly see the changes in browser.
There are several ways to go here:
yarn link command (see below).yarn link to link your library to it.You may take advantage of watch-modes for library build in order to see changes to your library's source code immediately in your browser.
To do so you need to:
yarn build:watch (assuming that you're in case-ui-toolkit root folder).yarn start in second console instance (for instance assuming that you're in case-management-web folder).As a result once you change library source code it will be automatically re-compiled and in turn your JIT consuming project (e.g. case-management-web) will be automatically re-built and you will be able to see that changes in your browser instantly.
Travis build system automatically publish NPM packages including GitHub releases whenever there is a version change in package.json
Prerelease version from PR branch should follow the format as x.y.z-RDM-xxx-prerelease
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Case UI Toolkit
The npm package @hmcts/ccd-case-ui-toolkit receives a total of 15,268 weekly downloads. As such, @hmcts/ccd-case-ui-toolkit popularity was classified as popular.
We found that @hmcts/ccd-case-ui-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authoritiesβ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socketβs new workflow scanning support.