
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@hmcts/ccd-case-ui-toolkit
Advanced tools
case-ui-toolkit
# Install all dependencies
yarn install
# Create symbolic link
yarn link
# 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
# Link you library to the project
yarn link "@ccd/case-ui-toolkit"
yarn start
case-ui-toolkit
|
ββ src * Library sources home folder
| ββ components * Example of library components with tests
| ββ services * Example of library services with tests
| ββ index.ts * Library entry point that is used by builders
| ββ headers-footers.module.ts * Example of library module
|
ββ .editorconfig * Common IDE configuration
ββ .gitignore * List of files that are ignored while publishing to git repo
ββ .yarnignore * List of files that are ignored while publishing to yarn
ββ .travis.yml * Travic CI configuration
ββ LICENSE * License details
ββ README.md * README for you 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.ts * Webpack configuration for building test version of the library
ββ webpack-umd.config.ts * Webpack configuration for building UMD bundle
ββ package-lock.json * 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.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.
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 2,019 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.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookieβs npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.