Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@maggioli-design-system/magma
Advanced tools
nx run stencil:generate mds-component-name
nx run stencil:build --skip-nx-cache
package.json
, needed to publish the new web-componentnx run stencil:publish.isolate.component --component=mds-component-name
npx nx run stencil:build
npx nx run stencil:isolate-component --skip-nx-cache
And follow script instructions
cd .build/component-name
npm run build
npm publish --access public
All tests paths are from this project design-system/projects/stencil/
path.
To run regression tests you'll need to have Docker installed on your local machine, this will ensure to run the same Chrome render between local machines with different operative systems.
First, if you don't have a reference images .loki/reference
path, you need to run:
nx run stencil:test.regression.reference
Then you should see images inside .loki/reference
, these images will be used to check differences after your changes.
You should do it AFTER a git pull
and BEFORE starting to work:
git pull
nx run stencil:test.regression.reference
When you have the reference images and you have worked
nx run stencil:test.regression.review
If for some reason you need to clean loki image cache:
nx run stencil:test.regression.clean
We've added a list of terminal commands to ease the updating processo for all component. Updates the component and all components on which it is dependent.
nx run stencil:update -- --version={major | minor | patch} {component}
Assuming we have a mds-foo
to default version 1.0.0
and a mds-bar
which have a mds-foo
as dependencie and version 2.2.3
, if you run:
nx run stencil:update -- --version=major mds-foo
Will become:
{
"name": "@maggioli-design-system/mds-foo",
"version": "2.0.0"
}
{
"name": "@maggioli-design-system/mds-bar",
"version": "3.0.0",
"dependencies": {
"mds-foo": "2.0.0"
}
}
Assuming we have a mds-foo
to default version 1.0.0
, if you run:
nx run stencil:update -- --version=minor mds-foo
Will become:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.1.0"
}
Assuming we have a mds-foo
to default version 1.0.0
, if you run:
nx run stencil:update.version patch mds-foo
Will become:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.0.1"
}
To synchronize all version components dependencies launch
nx run stencil:update
Assuming we have a mds-foo
to default version 1.0.0
, with two dependencies to be updated to mds-dep-1@1.3.1
and mds-dep-2@1.1.2
, if you run:
nx run stencil:update
Old dependencies:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.0.0",
"dependencies": {
"@maggioli-design-system/mds-dep-1": "1.2.0",
"@maggioli-design-system/mds-dep-2": "1.0.0"
}
}
Will be updated to:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.0.1",
"dependencies": {
"@maggioli-design-system/mds-dep-1": "1.3.1",
"@maggioli-design-system/mds-dep-2": "1.1.2"
}
}
The option --common
will also update dependencies found also in stencil/package.json
file for each component that have the updated dependencies.
nx run stencil:update --common
Note: if you want choose type of version you need to add --
with nx run command:
nx run stencil:update -- --common --version=minor
This means if you have a component mds-foo/package.json
:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.0.0",
"dependencies": {
"@maggioli-design-system/mds-dep-1": "1.1.2",
"@maggioli-design-system/styles": "11.0.0",
"@stencil/core": "4.2.0"
}
}
And this is stencil/package.json
:
{
"name": "stencil",
"version": "1.0.0",
"dependencies": {
"clsx": "2.0.0",
"@maggioli-design-system/styles": "13.0.0",
"@stencil/core": "4.6.0",
"fitty": "2.3.7",
"idb-keyval": "6.2.1"
}
}
The command will update the dependecies both found on stencil
and mds-foo
only:
{
"name": "@maggioli-design-system/mds-foo",
"version": "1.0.1",
"dependencies": {
"@maggioli-design-system/mds-dep-1": "1.1.2",
"@maggioli-design-system/styles": "13.0.0",
"@stencil/core": "4.6.0"
}
}
So you can update @stencil/core
based on stencil/package.json
without add unwanted dependencies to mds-foo/package.json
.
FAQs
Magma is Maggioli Design System's web-components library.
The npm package @maggioli-design-system/magma receives a total of 55 weekly downloads. As such, @maggioli-design-system/magma popularity was classified as not popular.
We found that @maggioli-design-system/magma demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.