Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
d4b3d21d
C
code-server
项目概览
彭彦祖
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
d4b3d21d
编写于
5月 14, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Require minimum node 12
上级
40778b15
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
4 deletion
+21
-4
README.md
README.md
+2
-0
ci/build/npm-postinstall.sh
ci/build/npm-postinstall.sh
+10
-0
ci/steps/publish-npm.sh
ci/steps/publish-npm.sh
+1
-1
ci/steps/release-static.sh
ci/steps/release-static.sh
+1
-1
doc/CONTRIBUTING.md
doc/CONTRIBUTING.md
+1
-1
doc/npm.md
doc/npm.md
+2
-0
package.json
package.json
+4
-1
未找到文件。
README.md
浏览文件 @
d4b3d21d
...
@@ -41,6 +41,8 @@ platform or architecture.
...
@@ -41,6 +41,8 @@ platform or architecture.
**note:**
Installing via
`npm`
requires certain dependencies for the native module builds.
**note:**
Installing via
`npm`
requires certain dependencies for the native module builds.
See
[
./doc/npm.md
](
./doc/npm.md
)
for installing these dependencies.
See
[
./doc/npm.md
](
./doc/npm.md
)
for installing these dependencies.
You also need at least node v12 installed. See
[
#1633
](
https://github.com/cdr/code-server/issues/1633
)
.
```
bash
```
bash
npm
install
-g
code-server
npm
install
-g
code-server
code-server
code-server
...
...
ci/build/npm-postinstall.sh
浏览文件 @
d4b3d21d
...
@@ -2,6 +2,16 @@
...
@@ -2,6 +2,16 @@
set
-eu
set
-eu
main
()
{
main
()
{
# Grabs the major version of node from $npm_config_user_agent which looks like
# yarn/1.21.1 npm/? node/v14.2.0 darwin x64
major_node_version
=
$(
echo
"
$npm_config_user_agent
"
|
sed
-n
's/.*node\/v\([^.]*\).*/\1/p'
)
if
[
"
$major_node_version
"
-lt
12
]
;
then
echo
"code-server currently requires at least node v12"
echo
"We have detected that you are on node v
$major_node_version
"
echo
"See https://github.com/cdr/code-server/issues/1633"
exit
1
fi
case
"
${
npm_config_user_agent
-
}
"
in
npm
*
)
case
"
${
npm_config_user_agent
-
}
"
in
npm
*
)
# We are running under npm.
# We are running under npm.
if
[
"
${
npm_config_unsafe_perm
-
}
"
!=
"true"
]
;
then
if
[
"
${
npm_config_unsafe_perm
-
}
"
!=
"true"
]
;
then
...
...
ci/steps/publish-npm.sh
浏览文件 @
d4b3d21d
...
@@ -11,7 +11,7 @@ main() {
...
@@ -11,7 +11,7 @@ main() {
download_artifact npm-package ./release
download_artifact npm-package ./release
# https://github.com/actions/upload-artifact/issues/38
# https://github.com/actions/upload-artifact/issues/38
chmod
+x
$(
grep
-rl
'^#!/.
\+
'
release
)
chmod
+x
$(
grep
-rl
'^#!/.
*
'
release
)
yarn publish
--non-interactive
release
yarn publish
--non-interactive
release
}
}
...
...
ci/steps/release-static.sh
浏览文件 @
d4b3d21d
...
@@ -5,7 +5,7 @@ main() {
...
@@ -5,7 +5,7 @@ main() {
cd
"
$(
dirname
"
$0
"
)
/../.."
cd
"
$(
dirname
"
$0
"
)
/../.."
# https://github.com/actions/upload-artifact/issues/38
# https://github.com/actions/upload-artifact/issues/38
chmod
+x
$(
grep
-rl
'^#!/.
\+
'
release
)
chmod
+x
$(
grep
-rl
'^#!/.
*
'
release
)
yarn release:static
yarn release:static
yarn
test
:static-release
yarn
test
:static-release
...
...
doc/CONTRIBUTING.md
浏览文件 @
d4b3d21d
...
@@ -9,7 +9,7 @@ Please refer to [VS Code's prerequisites](https://github.com/Microsoft/vscode/wi
...
@@ -9,7 +9,7 @@ Please refer to [VS Code's prerequisites](https://github.com/Microsoft/vscode/wi
Differences:
Differences:
-
We
are not constrained by node version
-
We
require at least node v12 but later versions should work
-
We use
[
fnpm
](
https://github.com/goreleaser/nfpm
)
to build .deb and .rpm packages
-
We use
[
fnpm
](
https://github.com/goreleaser/nfpm
)
to build .deb and .rpm packages
## Development Workflow
## Development Workflow
...
...
doc/npm.md
浏览文件 @
d4b3d21d
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
If you're installing the npm module you'll need certain dependencies to build
If you're installing the npm module you'll need certain dependencies to build
the native modules used by VS Code.
the native modules used by VS Code.
You also need at least node v12 installed. See
[
#1633
](
https://github.com/cdr/code-server/issues/1633
)
.
## Ubuntu, Debian
## Ubuntu, Debian
```
bash
```
bash
...
...
package.json
浏览文件 @
d4b3d21d
...
@@ -92,5 +92,8 @@
...
@@ -92,5 +92,8 @@
"coder"
,
"coder"
,
"vscode-remote"
,
"vscode-remote"
,
"browser-ide"
"browser-ide"
]
],
"engines"
:
{
"node"
:
">= 12"
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录