Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
d71299fe
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
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,发现更多精彩内容 >>
提交
d71299fe
编写于
2月 05, 2019
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Upgrade to gulp4
上级
929177ff
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
1040 addition
and
785 deletion
+1040
-785
build/gulpfile.extensions.js
build/gulpfile.extensions.js
+1
-0
build/lib/compilation.js
build/lib/compilation.js
+1
-0
build/lib/compilation.ts
build/lib/compilation.ts
+1
-0
build/lib/typings/vinyl.d.ts
build/lib/typings/vinyl.d.ts
+3
-0
build/lib/util.js
build/lib/util.js
+12
-0
build/lib/util.ts
build/lib/util.ts
+12
-0
package.json
package.json
+13
-13
yarn.lock
yarn.lock
+997
-772
未找到文件。
build/gulpfile.extensions.js
浏览文件 @
d71299fe
...
...
@@ -80,6 +80,7 @@ const tasks = compilations.map(function (tsconfigFile) {
.
pipe
(
tsFilter
)
.
pipe
(
util
.
loadSourcemaps
())
.
pipe
(
compilation
())
.
pipe
(
util
.
toLatestVinylFile
())
.
pipe
(
build
?
nlsDev
.
rewriteLocalizeCalls
()
:
es
.
through
())
.
pipe
(
build
?
util
.
stripSourceMappingURL
()
:
es
.
through
())
.
pipe
(
sourcemaps
.
write
(
'
.
'
,
{
...
...
build/lib/compilation.js
浏览文件 @
d71299fe
...
...
@@ -58,6 +58,7 @@ function createCompile(src, build, emitError) {
.
pipe
(
tsFilter
)
.
pipe
(
util
.
loadSourcemaps
())
.
pipe
(
ts
(
token
))
.
pipe
(
util
.
toLatestVinylFile
())
.
pipe
(
noDeclarationsFilter
)
.
pipe
(
build
?
nls
()
:
es
.
through
())
.
pipe
(
noDeclarationsFilter
.
restore
)
...
...
build/lib/compilation.ts
浏览文件 @
d71299fe
...
...
@@ -66,6 +66,7 @@ function createCompile(src: string, build: boolean, emitError?: boolean): (token
.
pipe
(
tsFilter
)
.
pipe
(
util
.
loadSourcemaps
())
.
pipe
(
ts
(
token
))
.
pipe
(
util
.
toLatestVinylFile
())
.
pipe
(
noDeclarationsFilter
)
.
pipe
(
build
?
nls
()
:
es
.
through
())
.
pipe
(
noDeclarationsFilter
.
restore
)
...
...
build/lib/typings/vinyl.d.ts
浏览文件 @
d71299fe
...
...
@@ -11,6 +11,9 @@ declare module "vinyl" {
* A virtual file format.
*/
class
File
{
public
static
isVinyl
(
t
:
any
):
t
is
File
;
constructor
(
options
?:
{
/**
* Default: process.cwd()
...
...
build/lib/util.js
浏览文件 @
d71299fe
...
...
@@ -98,6 +98,18 @@ function skipDirectories() {
});
}
exports
.
skipDirectories
=
skipDirectories
;
/**
* gulp does not like anything except the latest VinylFile (it checks for VinylFile.isVinyl)
*/
function
toLatestVinylFile
()
{
return
es
.
mapSync
(
f
=>
{
if
(
VinylFile
.
isVinyl
(
f
))
{
return
f
;
}
return
new
VinylFile
(
f
);
});
}
exports
.
toLatestVinylFile
=
toLatestVinylFile
;
function
cleanNodeModule
(
name
,
excludes
,
includes
)
{
const
toGlob
=
(
path
)
=>
'
**/node_modules/
'
+
name
+
(
path
?
'
/
'
+
path
:
''
);
const
negate
=
(
str
)
=>
'
!
'
+
str
;
...
...
build/lib/util.ts
浏览文件 @
d71299fe
...
...
@@ -129,6 +129,18 @@ export function skipDirectories(): NodeJS.ReadWriteStream {
});
}
/**
* gulp does not like anything except the latest VinylFile (it checks for VinylFile.isVinyl)
*/
export
function
toLatestVinylFile
():
NodeJS
.
ReadWriteStream
{
return
es
.
mapSync
<
VinylFile
,
VinylFile
>
(
f
=>
{
if
(
VinylFile
.
isVinyl
(
f
))
{
return
f
;
}
return
new
VinylFile
(
f
);
});
}
export
function
cleanNodeModule
(
name
:
string
,
excludes
:
string
[],
includes
?:
string
[]):
NodeJS
.
ReadWriteStream
{
const
toGlob
=
(
path
:
string
)
=>
'
**/node_modules/
'
+
name
+
(
path
?
'
/
'
+
path
:
''
);
const
negate
=
(
str
:
string
)
=>
'
!
'
+
str
;
...
...
package.json
浏览文件 @
d71299fe
...
...
@@ -83,23 +83,23 @@
"
express
"
:
"
^4.13.1
"
,
"
fancy-log
"
:
"
^1.3.3
"
,
"
glob
"
:
"
^5.0.13
"
,
"
gulp
"
:
"
^
3.8.9
"
,
"
gulp
"
:
"
^
4.0.0
"
,
"
gulp-atom-electron
"
:
"
^1.19.2
"
,
"
gulp-azure-storage
"
:
"
^0.
8.2
"
,
"
gulp-azure-storage
"
:
"
^0.
9.0
"
,
"
gulp-buffer
"
:
"
0.0.2
"
,
"
gulp-concat
"
:
"
^2.6.
0
"
,
"
gulp-cssnano
"
:
"
^2.1.
0
"
,
"
gulp-eslint
"
:
"
^
3.0.1
"
,
"
gulp-filter
"
:
"
^
3.0
.0
"
,
"
gulp-flatmap
"
:
"
^1.0.
0
"
,
"
gulp-json-editor
"
:
"
^2.
2.1
"
,
"
gulp-concat
"
:
"
^2.6.
1
"
,
"
gulp-cssnano
"
:
"
^2.1.
3
"
,
"
gulp-eslint
"
:
"
^
5.0.0
"
,
"
gulp-filter
"
:
"
^
5.1
.0
"
,
"
gulp-flatmap
"
:
"
^1.0.
2
"
,
"
gulp-json-editor
"
:
"
^2.
5.0
"
,
"
gulp-plumber
"
:
"
^1.2.0
"
,
"
gulp-remote-src
"
:
"
^0.4.4
"
,
"
gulp-rename
"
:
"
^1.2.0
"
,
"
gulp-replace
"
:
"
^0.5.4
"
,
"
gulp-shell
"
:
"
^0.
5.2
"
,
"
gulp-shell
"
:
"
^0.
6.5
"
,
"
gulp-tsb
"
:
"
2.0.5
"
,
"
gulp-tslint
"
:
"
^8.1.
2
"
,
"
gulp-tslint
"
:
"
^8.1.
3
"
,
"
gulp-uglify
"
:
"
^3.0.0
"
,
"
gulp-vinyl-zip
"
:
"
^2.1.2
"
,
"
husky
"
:
"
^0.13.1
"
,
...
...
@@ -119,7 +119,7 @@
"
pump
"
:
"
^1.0.1
"
,
"
queue
"
:
"
3.0.6
"
,
"
rcedit
"
:
"
^1.1.0
"
,
"
remap-istanbul
"
:
"
^0.
6.4
"
,
"
remap-istanbul
"
:
"
^0.
13.0
"
,
"
rimraf
"
:
"
^2.2.8
"
,
"
sinon
"
:
"
^1.17.2
"
,
"
source-map
"
:
"
^0.4.4
"
,
...
...
@@ -130,8 +130,8 @@
"
typescript-tslint-plugin
"
:
"
^0.0.7
"
,
"
uglify-es
"
:
"
^3.0.18
"
,
"
underscore
"
:
"
^1.8.2
"
,
"
vinyl
"
:
"
^
0.4.5
"
,
"
vinyl-fs
"
:
"
^
2.4.3
"
,
"
vinyl
"
:
"
^
2.0.0
"
,
"
vinyl-fs
"
:
"
^
3.0.0
"
,
"
vsce
"
:
"
1.48.0
"
,
"
vscode-nls-dev
"
:
"
3.2.2
"
,
"
webpack
"
:
"
^4.16.5
"
,
...
...
yarn.lock
浏览文件 @
d71299fe
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录