
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.
@cpelements/elements
Advanced tools
Custom web components for the Red Hat Customer Portal. For guidance, check out the Red Hat Design System Wiki.
git clone git@gitlab.cee.redhat.com:customer-platform/cp-elements.git
cd cp-elements
npm ci
npm run start
When importing an external dependency into to your component, don't forget to also update the ImportMapPlaugin in eleventy.config.cjs for our docs and demo site.
eleventyConfig.addPlugin(ImportMapPlugin, {
defaultProvider: 'nodemodules',
localPackages: [
...
'@patternfly/elements/pf-timestamp/pf-timestamp.js',
'@rhds/elements/rh-cta/rh-cta.js',
ADD HERE
],
});
When styling your components, don't forget to leverage Red Hat Design Tokens. The team has developed an editor plugin to help! The list of token values can be found here as well.
Many commands have an optional argument of space-separated component name(s), if left off it will assume it should run on all components. These should run from the project root.
# Generate a new component
npm run new
# Build all components
npm run build
# Runs development server
npm run start
# Run default test group in watch mode
npm run test:watch
# Run a single test in watch mode
npm run test:watch -- --files elements/cp-404/test/cp-404.spec.ts
# Or multiple:
npm run test:watch -- --files 'elements/cp-{404,more-like-this}/test/*.spec.ts'
# Run all tests excluding react and vue tests
npm run test:watch
# Run all tests using a React wrapper in watch mode
npm run test:react
# Run all tests using a Vue wrapper in watch mode
npm run test:vue
# Run all tests with and without React and Vue wrappers
# This is run on pull request within CI
npm run test:ci
# View the documentation locally
npm run start
# Build the documentation site
npm run docs
package.json version by 1 with npm version patch
i.e. 2.0.0-alpha.24 => 2.0.0-alpha.25npm whoami (if you are not logged in you will need to log in before you can publish changes to npmjs)npm run build - if all is good move to the next stepnpm run lint - if all is good move to the next stepnpm publish --access=publicpackage.json file to the repo.package-lock.json filepackage.json file, then commit the package-lock.json file otherwise DO NOT commit the package-lock.jsonFAQs
Customer Portal Elements
The npm package @cpelements/elements receives a total of 763 weekly downloads. As such, @cpelements/elements popularity was classified as not popular.
We found that @cpelements/elements demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 18 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.