Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
12174193
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
12174193
编写于
2月 26, 2018
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
missing build compilation
上级
4dd25bb3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
build/lib/i18n.js
build/lib/i18n.js
+6
-6
build/lib/nls.js
build/lib/nls.js
+1
-1
build/lib/optimize.js
build/lib/optimize.js
+3
-3
build/lib/util.js
build/lib/util.js
+2
-2
未找到文件。
build/lib/i18n.js
浏览文件 @
12174193
...
...
@@ -462,7 +462,7 @@ function processCoreBundleFormat(fileHeader, languages, json, emitter) {
contents
.
push
(
index
<
modules
.
length
-
1
?
'
\t
],
'
:
'
\t
]
'
);
});
contents
.
push
(
'
});
'
);
emitter
.
queue
(
new
File
({
path
:
bundle
+
'
.nls.
'
+
language
.
id
+
'
.js
'
,
contents
:
new
Buffer
(
contents
.
join
(
'
\n
'
),
'
utf-8
'
)
}));
emitter
.
queue
(
new
File
({
path
:
bundle
+
'
.nls.
'
+
language
.
id
+
'
.js
'
,
contents
:
Buffer
.
from
(
contents
.
join
(
'
\n
'
),
'
utf-8
'
)
}));
});
});
Object
.
keys
(
statistics
).
forEach
(
function
(
key
)
{
...
...
@@ -559,7 +559,7 @@ function createXlfFilesForCoreBundle() {
var
filePath
=
xlf
.
project
+
"
/
"
+
resource
.
replace
(
/
\/
/g
,
'
_
'
)
+
"
.xlf
"
;
var
xlfFile
=
new
File
({
path
:
filePath
,
contents
:
new
Buffer
(
xlf
.
toString
(),
'
utf8
'
)
contents
:
Buffer
.
from
(
xlf
.
toString
(),
'
utf8
'
)
});
this
.
queue
(
xlfFile
);
}
...
...
@@ -636,7 +636,7 @@ function createXlfFilesForExtensions() {
if
(
_xlf
)
{
var
xlfFile
=
new
File
({
path
:
path
.
join
(
extensionsProject
,
extensionName
+
'
.xlf
'
),
contents
:
new
Buffer
(
_xlf
.
toString
(),
'
utf8
'
)
contents
:
Buffer
.
from
(
_xlf
.
toString
(),
'
utf8
'
)
});
folderStream
.
queue
(
xlfFile
);
}
...
...
@@ -703,7 +703,7 @@ function createXlfFilesForIsl() {
xlf
.
addFile
(
originalPath
,
keys
,
messages
);
// Emit only upon all ISL files combined into single XLF instance
var
newFilePath
=
path
.
join
(
projectName
,
resourceFile
);
var
xlfFile
=
new
File
({
path
:
newFilePath
,
contents
:
new
Buffer
(
xlf
.
toString
(),
'
utf-8
'
)
});
var
xlfFile
=
new
File
({
path
:
newFilePath
,
contents
:
Buffer
.
from
(
xlf
.
toString
(),
'
utf-8
'
)
});
this
.
queue
(
xlfFile
);
});
}
...
...
@@ -1049,7 +1049,7 @@ function createI18nFile(originalFilePath, messages) {
var
content
=
JSON
.
stringify
(
result
,
null
,
'
\t
'
).
replace
(
/
\r\n
/g
,
'
\n
'
);
return
new
File
({
path
:
path
.
join
(
originalFilePath
+
'
.i18n.json
'
),
contents
:
new
Buffer
(
content
,
'
utf8
'
)
contents
:
Buffer
.
from
(
content
,
'
utf8
'
)
});
}
var
i18nPackVersion
=
"
1.0.0
"
;
...
...
@@ -1189,7 +1189,7 @@ function createIslFile(originalFilePath, messages, language, innoSetup) {
var
filePath
=
basename
+
"
.
"
+
language
.
id
+
"
.isl
"
;
return
new
File
({
path
:
filePath
,
contents
:
iconv
.
encode
(
new
Buffer
(
content
.
join
(
'
\r\n
'
),
'
utf8
'
),
innoSetup
.
codePage
)
contents
:
iconv
.
encode
(
Buffer
.
from
(
content
.
join
(
'
\r\n
'
),
'
utf8
'
),
innoSetup
.
codePage
)
});
}
function
encodeEntities
(
value
)
{
...
...
build/lib/nls.js
浏览文件 @
12174193
...
...
@@ -79,7 +79,7 @@ function isImportNode(node) {
function
fileFrom
(
file
,
contents
,
path
)
{
if
(
path
===
void
0
)
{
path
=
file
.
path
;
}
return
new
File
({
contents
:
new
Buffer
(
contents
),
contents
:
Buffer
.
from
(
contents
),
base
:
file
.
base
,
cwd
:
file
.
cwd
,
path
:
path
...
...
build/lib/optimize.js
浏览文件 @
12174193
...
...
@@ -57,7 +57,7 @@ function loader(bundledFileHeader, bundleLoader) {
this
.
emit
(
'
data
'
,
new
VinylFile
({
path
:
'
fake
'
,
base
:
''
,
contents
:
new
Buffer
(
bundledFileHeader
)
contents
:
Buffer
.
from
(
bundledFileHeader
)
}));
this
.
emit
(
'
data
'
,
data
);
}
...
...
@@ -96,7 +96,7 @@ function toConcatStream(bundledFileHeader, sources, dest) {
return
new
VinylFile
({
path
:
source
.
path
?
root
+
'
/
'
+
source
.
path
.
replace
(
/
\\
/g
,
'
/
'
)
:
'
fake
'
,
base
:
base
,
contents
:
new
Buffer
(
source
.
contents
)
contents
:
Buffer
.
from
(
source
.
contents
)
});
});
return
es
.
readArray
(
treatedSources
)
...
...
@@ -139,7 +139,7 @@ function optimizeTask(opts) {
bundleInfoArray
.
push
(
new
VinylFile
({
path
:
'
bundleInfo.json
'
,
base
:
'
.
'
,
contents
:
new
Buffer
(
JSON
.
stringify
(
result
.
bundleData
,
null
,
'
\t
'
))
contents
:
Buffer
.
from
(
JSON
.
stringify
(
result
.
bundleData
,
null
,
'
\t
'
))
}));
}
es
.
readArray
(
bundleInfoArray
).
pipe
(
bundleInfoStream
);
...
...
build/lib/util.js
浏览文件 @
12174193
...
...
@@ -143,7 +143,7 @@ function loadSourcemaps() {
cb
(
null
,
f
);
return
;
}
f
.
contents
=
new
Buffer
(
contents
.
replace
(
/
\/\/
# sourceMappingURL=
(
.*
)
$/g
,
''
),
'
utf8
'
);
f
.
contents
=
Buffer
.
from
(
contents
.
replace
(
/
\/\/
# sourceMappingURL=
(
.*
)
$/g
,
''
),
'
utf8
'
);
fs
.
readFile
(
path
.
join
(
path
.
dirname
(
f
.
path
),
lastMatch
[
1
]),
'
utf8
'
,
function
(
err
,
contents
)
{
if
(
err
)
{
return
cb
(
err
);
...
...
@@ -160,7 +160,7 @@ function stripSourceMappingURL() {
var
output
=
input
.
pipe
(
es
.
mapSync
(
function
(
f
)
{
var
contents
=
f
.
contents
.
toString
(
'
utf8
'
);
f
.
contents
=
new
Buffer
(
contents
.
replace
(
/
\n\/\/
# sourceMappingURL=
(
.*
)
$/gm
,
''
),
'
utf8
'
);
f
.
contents
=
Buffer
.
from
(
contents
.
replace
(
/
\n\/\/
# sourceMappingURL=
(
.*
)
$/gm
,
''
),
'
utf8
'
);
return
f
;
}));
return
es
.
duplex
(
input
,
output
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录