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.
dt-react-component
Advanced tools
目的:减少代码重复率,便于新同学对组件使用以及团队内部项目的代码优化
使用 npm
npm i dt-react-component --save
import { Circle, GoBack } from 'dt-react-component'
const App = () => (
<>
<Circle />
<GoBack url='/api/manage' />
</>
);
样式引入:
import 'dt-react-component/lib/index.css'
import { Circle } from 'dt-react-component/lib/circle'
样式暂时还是必须全量引入:
import 'dt-react-component/lib/index.css'
目前这块打包出来的样式暂不支持单文件引入,这块后续有时间使用 gulp/webpack 打包单独出组件样式文件
clone & npm install
git clone ssh://git@gitlab.prod.dtstack.cn:10022/dt-insight-front/infrastructure/dt-react-component.git
npm install
启动本地服务器
npm run storybook
组件开发
静态服务部署构建
npm run build-storybook
组件发布至 npm 在按照一些列组件开发规范流程下,测试组件无问题后进行组件发布
npm run compile 输出 lib 目录
登陆 npm 执行 npm publish
这里使用 netlify 托管 storybook 静态服务 netlify 服务器检测到 push master 操作会自动执行 npm run build-storybook,生成最新的静态资源重新部署,可在 https://dtux.netlify.com/ 查看效果
1.3.0 (2020-07-14)
FAQs
react-component
The npm package dt-react-component receives a total of 9 weekly downloads. As such, dt-react-component popularity was classified as not popular.
We found that dt-react-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.