Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magix-local

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magix-local

magix模块从node_modules同步到项目工具

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
2
Weekly downloads
 
Created
Source

Magix Local

magix配套工具,把Magix项目模块从node_modules同步到项目本地

安装与使用

npm install magix-local -g

运行:

ms 模块名 需要同步的目录(可选)

eg:ms @alife/mx-sem-share app/views/test

同步规则

模块全部托管在npm。一般模块的package.json会包括下面配置:

"aim": "atom/dialog",   // 标明当前模块安装后期望的目标目录
"rules": ["^mx-"],      // 匹配规则,会去匹配dependencies里面依赖的模块,匹配成功,也会安装到本地
"dependencies": {       //  依赖的模块,如果希望安装后依赖的模块也被安装,那么记得rules
  "mx-atom-zepto": "^0.0.1",
  "mx-atom-magix": "^0.0.1",
  "mx-atom-mask": "^0.0.1"
},

命令本身不去处理版本号依赖的问题,如果一个模块同步时本地已有,会给出是否覆盖的提示。

如果需要审计模块,可以在模块名后面加上版本号:

ms @alife/mx-sem-share app/views/test

Keywords

FAQs

Package last updated on 12 Sep 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc