Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2141437f
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2141437f
编写于
1月 02, 2020
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix eslint issues in build/gulpfile.*
上级
84013e2e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
19 deletion
+19
-19
build/gulpfile.editor.js
build/gulpfile.editor.js
+11
-11
build/gulpfile.reh.js
build/gulpfile.reh.js
+1
-1
build/gulpfile.vscode.js
build/gulpfile.vscode.js
+5
-5
build/gulpfile.vscode.linux.js
build/gulpfile.vscode.linux.js
+2
-2
未找到文件。
build/gulpfile.editor.js
浏览文件 @
2141437f
...
...
@@ -17,14 +17,14 @@ const compilation = require('./lib/compilation');
const
monacoapi
=
require
(
'
./monaco/api
'
);
const
fs
=
require
(
'
fs
'
);
var
root
=
path
.
dirname
(
__dirname
);
var
sha1
=
util
.
getVersion
(
root
);
var
semver
=
require
(
'
./monaco/package.json
'
).
version
;
var
headerVersion
=
semver
+
'
(
'
+
sha1
+
'
)
'
;
let
root
=
path
.
dirname
(
__dirname
);
let
sha1
=
util
.
getVersion
(
root
);
let
semver
=
require
(
'
./monaco/package.json
'
).
version
;
let
headerVersion
=
semver
+
'
(
'
+
sha1
+
'
)
'
;
// Build
var
editorEntryPoints
=
[
let
editorEntryPoints
=
[
{
name
:
'
vs/editor/editor.main
'
,
include
:
[],
...
...
@@ -40,11 +40,11 @@ var editorEntryPoints = [
}
];
var
editorResources
=
[
let
editorResources
=
[
'
out-editor-build/vs/base/browser/ui/codiconLabel/**/*.ttf
'
];
var
BUNDLED_FILE_HEADER
=
[
let
BUNDLED_FILE_HEADER
=
[
'
/*!-----------------------------------------------------------
'
,
'
* Copyright (c) Microsoft Corporation. All rights reserved.
'
,
'
* Version:
'
+
headerVersion
,
...
...
@@ -263,7 +263,7 @@ const finalEditorResourcesTask = task.define('final-editor-resources', () => {
// package.json
gulp
.
src
(
'
build/monaco/package.json
'
)
.
pipe
(
es
.
through
(
function
(
data
)
{
var
json
=
JSON
.
parse
(
data
.
contents
.
toString
());
let
json
=
JSON
.
parse
(
data
.
contents
.
toString
());
json
.
private
=
false
;
data
.
contents
=
Buffer
.
from
(
JSON
.
stringify
(
json
,
null
,
'
'
));
this
.
emit
(
'
data
'
,
data
);
...
...
@@ -307,10 +307,10 @@ const finalEditorResourcesTask = task.define('final-editor-resources', () => {
return
;
}
var
relativePathToMap
=
path
.
relative
(
path
.
join
(
data
.
relative
),
path
.
join
(
'
min-maps
'
,
data
.
relative
+
'
.map
'
));
let
relativePathToMap
=
path
.
relative
(
path
.
join
(
data
.
relative
),
path
.
join
(
'
min-maps
'
,
data
.
relative
+
'
.map
'
));
var
strContents
=
data
.
contents
.
toString
();
var
newStr
=
'
//# sourceMappingURL=
'
+
relativePathToMap
.
replace
(
/
\\
/g
,
'
/
'
);
let
strContents
=
data
.
contents
.
toString
();
let
newStr
=
'
//# sourceMappingURL=
'
+
relativePathToMap
.
replace
(
/
\\
/g
,
'
/
'
);
strContents
=
strContents
.
replace
(
/
\/\/
# sourceMappingURL=
[^
]
+$/
,
newStr
);
data
.
contents
=
Buffer
.
from
(
strContents
);
...
...
build/gulpfile.reh.js
浏览文件 @
2141437f
...
...
@@ -118,7 +118,7 @@ function mixinServer(watch) {
const
packageJSONPath
=
path
.
join
(
path
.
dirname
(
__dirname
),
'
package.json
'
);
function
exec
(
cmdLine
)
{
console
.
log
(
cmdLine
);
cp
.
execSync
(
cmdLine
,
{
stdio
:
"
inherit
"
});
cp
.
execSync
(
cmdLine
,
{
stdio
:
'
inherit
'
});
}
function
checkout
()
{
const
packageJSON
=
JSON
.
parse
(
fs
.
readFileSync
(
packageJSONPath
).
toString
());
...
...
build/gulpfile.vscode.js
浏览文件 @
2141437f
...
...
@@ -121,9 +121,9 @@ gulp.task(minifyVSCodeTask);
* @return {Object} A map of paths to checksums.
*/
function
computeChecksums
(
out
,
filenames
)
{
var
result
=
{};
let
result
=
{};
filenames
.
forEach
(
function
(
filename
)
{
var
fullPath
=
path
.
join
(
process
.
cwd
(),
out
,
filename
);
let
fullPath
=
path
.
join
(
process
.
cwd
(),
out
,
filename
);
result
[
filename
]
=
computeChecksum
(
fullPath
);
});
return
result
;
...
...
@@ -136,9 +136,9 @@ function computeChecksums(out, filenames) {
* @return {string} The checksum for `filename`.
*/
function
computeChecksum
(
filename
)
{
var
contents
=
fs
.
readFileSync
(
filename
);
let
contents
=
fs
.
readFileSync
(
filename
);
var
hash
=
crypto
let
hash
=
crypto
.
createHash
(
'
md5
'
)
.
update
(
contents
)
.
digest
(
'
base64
'
)
...
...
@@ -428,7 +428,7 @@ gulp.task('vscode-translations-pull', function () {
});
gulp
.
task
(
'
vscode-translations-import
'
,
function
()
{
var
options
=
minimist
(
process
.
argv
.
slice
(
2
),
{
let
options
=
minimist
(
process
.
argv
.
slice
(
2
),
{
string
:
'
location
'
,
default
:
{
location
:
'
../vscode-translations-import
'
...
...
build/gulpfile.vscode.linux.js
浏览文件 @
2141437f
...
...
@@ -23,7 +23,7 @@ const commit = util.getVersion(root);
const
linuxPackageRevision
=
Math
.
floor
(
new
Date
().
getTime
()
/
1000
);
function
getDebPackageArch
(
arch
)
{
return
{
x64
:
'
amd64
'
,
arm
:
'
armhf
'
,
arm64
:
"
arm64
"
}[
arch
];
return
{
x64
:
'
amd64
'
,
arm
:
'
armhf
'
,
arm64
:
'
arm64
'
}[
arch
];
}
function
prepareDebPackage
(
arch
)
{
...
...
@@ -117,7 +117,7 @@ function getRpmBuildPath(rpmArch) {
}
function
getRpmPackageArch
(
arch
)
{
return
{
x64
:
'
x86_64
'
,
arm
:
'
armhf
'
,
arm64
:
"
arm64
"
}[
arch
];
return
{
x64
:
'
x86_64
'
,
arm
:
'
armhf
'
,
arm64
:
'
arm64
'
}[
arch
];
}
function
prepareRpmPackage
(
arch
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录