theia学习笔记(一)

Theia学习笔记(一)

建立一个项目,就叫my-app,然后在里面建立一个package.json,在里面放下一些基本的配置信息。

{
  "name": "my-app",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@theia/callhierarchy": "next",
    "@theia/file-search": "next",
    "@theia/git": "next",
    "@theia/markers": "next",
    "@theia/messages": "next",
    "@theia/mini-browser": "next",
    "@theia/navigator": "next",
    "@theia/outline-view": "next",
    "@theia/plugin-ext-vscode": "next",
    "@theia/preferences": "next",
    "@theia/preview": "next",
    "@theia/search-in-workspace": "next",
    "@theia/terminal": "next"
  },
  "devDependencies": {
    "@theia/cli": "next"
  }
}

package.json里的东西是我们需要安装的依赖,之后在底部的terminal里运行:

#	安装各种配置的依赖
$ yarn 

然后进行项目构建

$ yarn theia build

# 如果遇到访问失败等问题试试加上sudo
$ sudo yarn theia build

这样一个基本的项目就够就好了,这个时候,可以运行一下试试:

$ yarn theia start

这个是最基本的启动命令,可以使用更多的参数:

#	规定了打开目录和IP以及端口号
$ yarn theia start /my-workspace --hostname 0.0.0.0 --port 8080

启动之后可以看见theia封装好的编译器。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值