Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
myhjmzy
code-server
提交
950bfce4
C
code-server
项目概览
myhjmzy
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
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,发现更多精彩内容 >>
未验证
提交
950bfce4
编写于
8月 02, 2019
作者:
A
Asher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add commit, date, and checksums to product.json
上级
5b64cb34
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
38 addition
and
11 deletion
+38
-11
scripts/tasks.bash
scripts/tasks.bash
+3
-3
scripts/vscode.patch
scripts/vscode.patch
+35
-8
未找到文件。
scripts/tasks.bash
浏览文件 @
950bfce4
...
...
@@ -72,10 +72,10 @@ function build-code-server() {
cd
"
${
buildPath
}
"
&&
yarn
--production
--force
--build-from-source
rm
"
${
buildPath
}
/"
{
package.json,yarn.lock,.yarnrc
}
local
j
son
=
"{
\"
codeServerVersion
\"
:
\"
${
codeServerVersion
}
\"
}"
local
packageJ
son
=
"{
\"
codeServerVersion
\"
:
\"
${
codeServerVersion
}
\"
}"
cp
-r
"
${
sourcePath
}
/.build/extensions"
"
${
buildPath
}
"
node
"
${
rootPath
}
/scripts/merge.js"
"
${
sourcePath
}
/package.json"
"
${
rootPath
}
/scripts/package.json"
"
${
buildPath
}
/package.json"
"
${
j
son
}
"
node
"
${
rootPath
}
/scripts/merge.js"
"
${
sourcePath
}
/product.json"
"
${
rootPath
}
/scripts/product.json"
"
${
buildPath
}
/product.json"
node
"
${
rootPath
}
/scripts/merge.js"
"
${
sourcePath
}
/package.json"
"
${
rootPath
}
/scripts/package.json"
"
${
buildPath
}
/package.json"
"
${
packageJ
son
}
"
node
"
${
rootPath
}
/scripts/merge.js"
"
${
sourcePath
}
/
.build/
product.json"
"
${
rootPath
}
/scripts/product.json"
"
${
buildPath
}
/product.json"
cp
-r
"
${
sourcePath
}
/out-vscode
${
min
}
"
"
${
buildPath
}
/out"
# Only keep production dependencies for the server.
...
...
scripts/vscode.patch
浏览文件 @
950bfce4
...
...
@@ -11,7 +11,7 @@ index 0dd2e5abf1..fc6875f3c2 100644
// All Build
const compileBuildTask = task.define('compile-build', task.parallel(compileClientBuildTask, compileExtensionsBuildTask));
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
index 84a6be26e8..
7fb43686cd
100644
index 84a6be26e8..
e50618be3a
100644
--- a/build/gulpfile.vscode.js
+++ b/build/gulpfile.vscode.js
@@ -34,7 +34,8 @@
const deps = require('./dependencies');
...
...
@@ -85,16 +85,27 @@ index 84a6be26e8..7fb43686cd 100644
),
common.optimizeTask({
src: 'out-build',
@@ -127,6 +134,20 @@
const minifyVSCodeTask = task.define('minify-vscode', task.series(
common.minifyTask('out-vscode', `${sourceMappingURLBase}/core`)
@@ -104,7 +111,8 @@
const optimizeVSCodeTask = task.define('optimize-vscode', task.series(
header: BUNDLED_FILE_HEADER,
out: 'out-vscode',
bundleInfo: undefined
- })
+ }),
+ () => writeProduct()
));
@@ -124,9 +132,36 @@
const minifyVSCodeTask = task.define('minify-vscode', task.series(
util.rimraf('out-vscode-min'),
optimizeIndexJSTask
),
- common.minifyTask('out-vscode', `${sourceMappingURLBase}/core`)
+ common.minifyTask('out-vscode', `${sourceMappingURLBase}/core`),
+ () => writeProduct('out-vscode-min')
));
+function packageExtensionsTask() {
+ return () => {
+ const destination = path.join(root, ".build");
+ const sources = ext.packageExtensionsStream();
+ return sources.pipe(vfs.dest(destination));
+ };
+ return () => ext.packageExtensionsStream().pipe(vfs.dest(path.join(root, '.build')));
+}
+gulp.task(task.define('extensions-build-package', task.series(
+ compileExtensionsBuildTask,
...
...
@@ -102,6 +113,22 @@ index 84a6be26e8..7fb43686cd 100644
+)));
+gulp.task(optimizeVSCodeTask);
+gulp.task(minifyVSCodeTask);
+function writeProduct(sourceFolderName) {
+ const checksums = sourceFolderName && computeChecksums(sourceFolderName, [
+ 'vs/workbench/workbench.web.api.js',
+ 'vs/workbench/workbench.web.api.css',
+ 'vs/code/browser/workbench/workbench.html',
+ 'vs/code/browser/workbench/workbench.js',
+ 'vs/server/src/cli.js',
+ 'vs/server/src/uriTransformer.js',
+ 'vs/server/src/login/index.html'
+ ]);
+ const date = new Date().toISOString();
+ const productJsonUpdate = { commit, date, checksums };
+ return gulp.src(['product.json'], { base: '.' })
+ .pipe(json(productJsonUpdate))
+ .pipe(vfs.dest(path.join(root, '.build')));
+}
+
// Package
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录