如何将一个应用程序从Sublime Text带到web IDE中进行共享

How to bring an application from Sublime Text to a web IDE for sharing?

本文关键字:web 带到 Text IDE 共享 Sublime 应用程序 一个      更新时间:2023-09-26

我通常在Sublime Text中本地完成我的项目,但有时需要使用Jsfiddle、codepen或plunker等工具与他人分享。这通常是为了摆脱困境。

有没有一种更简单的方法来共享代码,而不涉及纯粹的复制粘贴和在新环境中获得所有依赖关系的麻烦?

它花了我几个小时让我的一些角应用程序在plunker工作,我想知道是否有一个更好的方法。

没有内置的方式来上传多个文件到Plunker。

用户已经构建了工具来促进这一点。请参阅:https://www.npmjs.org/package/plunk,这是一个命令行实用程序,可以让您从目录的内容创建plunks。

基本上,它将允许您从命令行执行plunk [dir]

您也可以通过向http://plnkr.co/edit/发出POST请求来引导plunks,其中有效负载具有以下格式:

{
  "description": "Plunk description", // Optional
  "tags": ["tag1", "tag2", ..., "tagN"], // Optional
  "files": {
    "filename1.ext": "contents of filename1.ext",
    "filename2.ext": "and so on.."
  }
}

处理程序的代码:https://github.com/filearts/plunker_www/blob/0c608ae80ef30d59bfdfeaf3c2a28563f7b730e4/app.coffee#L105-L121