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

ide-code-editor

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ide-code-editor

ide-code-editor

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

概览

ide-code-editor

安装使用

npm 包方式:

npm install --save ide-code-editor

web 方式:

<script src="https://unpkg.com/ide-code-editor@0.1.0/dist/index.umd.js"></script>

引入之后将会暴露全局变量 ideCodeEditor.

如果你想要在 webpack 中 external 该库,可以使用以下配置:

{
    externals: {
        "ide-code-editor": {
            "commonjs": "ide-code-editor",
            "commonjs2": "ide-code-editor",
            "amd": "ide-code-editor",
            "root": "ideCodeEditor"
        }
    }
}

如何本地开发?

本地调试

首先从 git 仓库拉取代码,安装依赖项:

git clone https://github.com/one-gourd/ide-code-editor.git

npm install

## 安装 peerDependencies 依赖包
npm install ide-lib-utils@0.x ide-lib-base-component@0.x ette@0.x ette-proxy@0.x ette-router@0.x antd@3.x mobx@4.x mobx-react@5.x mobx-react-lite@1.x mobx-state-tree@3.x react@16.x styled-components@4.x.x react-dom@16.x

运行以下命令后,访问 demo 地址: http://localhost:8010

npm run dev

也可访问 storybook 参考具体的使用案例:http://localhost:9001/

npm run storybook

运行测试用例

使用 jest 进行测试,执行:

npm test

打包发布

普通的 npm 发布即可,记得发布前需要手动打包:

npm run build && npm publish

FAQs

Package last updated on 13 Jul 2019

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