Socket
Socket
Sign inDemoInstall

ohmy-dev

Package Overview
Dependencies
13
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ohmy-dev

react+ts 组件开发示例


Version published
Maintainers
1
Install size
25.8 kB
Created

Readme

Source

hello~

react+ts 组件开发示例

scripts

dev

npm start

然后等待大概几秒钟,浏览器自动打开

publish

npm run mypublsih

tips

  1. 为什么本地开发不同样使用 rollup

    因为我发现 rollup 用来打包是在是太弱了,各种不满足需求。还是用 webpack 更好用,并且模拟真实的开发场景。

  2. 为什么不使用 prepublish

    prepublish 钩子在特别情况下,执行 npm i 会执行此钩子,所以自己写 publish 命令即可。

Keywords

FAQs

Last updated on 18 Apr 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc