
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@plurix/ecom-components
Advanced tools
Use yarn
to install all dependencies and prepare husky
(used to run scripts in git steps).
lib
: files that will be compiled and published in the @plurix/ecom-components
packagesrc
: local developmentlib/packages
, with your component name. Example: MyComponent
;.tsx
file inside this new folder and export a component from there. Example:// lib/packages/MyComponent/MyComponent.tsx
export const MyComponent = () => {
return <h1>My Component</h1>
}
lib/main.ts
. Example:// lib/main.ts
export { MyComponent } from './packages/MyComponent/MyComponent'
<component-name>Example.tsx
in src/examples
and import your component. Example:// src/examples/MyComponentExample.tsx
import { MyComponent } from '../../lib/main'
export const MyComponentExample = () => {
return (
<div className="my-component-example-container">
<MyComponent />
</div>
)
}
src/index.ts
. Example:// src/examples/index.ts
export { MyComponentExample } from './MyComponentExample'
yarn dev
;fast refresh
.OBS: If you need to use css
in your components, create them as <component-name>.global.css
and import them in your Lib Component. Then, you are able to use that in VTEX IO
and VTEX Faststore
.
package.json
and create an entry in CHANGELOG.md
.npm publish
in your terminal.import { MyComponent } from '@plurix/ecom-components'
import '@plurix/ecom-components/dist/styles/my-component.global.css' // If you are using css
FAQs
## Dependencies
The npm package @plurix/ecom-components receives a total of 195 weekly downloads. As such, @plurix/ecom-components popularity was classified as not popular.
We found that @plurix/ecom-components 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.