Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e5e79121
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,发现更多精彩内容 >>
提交
e5e79121
编写于
11月 20, 2015
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove npm-install-plugin:* tasks
上级
96d34d98
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
56 addition
and
77 deletion
+56
-77
build/gulpfile.plugins.js
build/gulpfile.plugins.js
+56
-77
未找到文件。
build/gulpfile.plugins.js
浏览文件 @
e5e79121
...
...
@@ -33,7 +33,6 @@ function getTSConfig(plugin) {
}
var
pluginRoot
=
path
.
join
(
extensionsPath
,
plugin
.
desc
.
name
);
var
options
=
null
;
if
(
match
[
2
])
{
...
...
@@ -82,97 +81,77 @@ function readAllPlugins() {
var
tasks
=
readAllPlugins
()
.
map
(
function
(
plugin
)
{
var
options
=
getTSConfig
(
plugin
);
if
(
!
options
)
{
return
null
;
}
var
name
=
plugin
.
desc
.
name
;
var
pluginRoot
=
path
.
join
(
extensionsPath
,
name
);
var
clean
=
'
clean-plugin:
'
+
name
;
var
compile
=
'
compile-plugin:
'
+
name
;
var
watch
=
'
watch-plugin:
'
+
name
;
var
npmInstall
=
'
npm-install-plugin:
'
+
name
;
var
hasnpmTask
=
(
plugin
.
desc
.
dependencies
&&
Object
.
keys
(
plugin
.
desc
.
dependencies
).
length
>
0
);
var
sources
=
'
extensions/
'
+
name
+
'
/src/**
'
;
var
deps
=
[
'
src/vs/vscode.d.ts
'
,
'
src/typings/mocha.d.ts
'
,
'
extensions/declares.d.ts
'
,
'
extensions/node.d.ts
'
,
'
extensions/lib.core.d.ts
'
];
var
pipeline
=
(
function
()
{
var
reporter
=
quiet
?
null
:
createReporter
();
var
compilation
=
tsb
.
create
(
options
,
null
,
null
,
quiet
?
null
:
function
(
err
)
{
reporter
(
err
.
toString
());
});
return
function
()
{
var
input
=
es
.
through
();
var
tsFilter
=
filter
([
'
**/*.ts
'
,
'
!**/lib/lib*.d.ts
'
],
{
restore
:
true
});
var
output
=
input
.
pipe
(
tsFilter
)
.
pipe
(
compilation
())
.
pipe
(
tsFilter
.
restore
)
.
pipe
(
quiet
?
es
.
through
()
:
reporter
());
return
es
.
duplex
(
input
,
output
);
};
})();
var
sourcesRoot
=
path
.
join
(
pluginRoot
,
'
src
'
);
var
sourcesOpts
=
{
cwd
:
path
.
dirname
(
__dirname
),
base
:
sourcesRoot
};
var
depsOpts
=
{
cwd
:
path
.
dirname
(
__dirname
)
};
gulp
.
task
(
clean
,
function
(
cb
)
{
rimraf
(
path
.
join
(
pluginRoot
,
'
out
'
),
cb
);
});
if
(
hasnpmTask
)
{
gulp
.
task
(
npmInstall
,
function
(
cb
)
{
cp
.
exec
(
'
npm install
'
,
{
cwd
:
pluginRoot
},
cb
);
});
}
gulp
.
task
(
compile
,
[
clean
],
function
()
{
var
src
=
es
.
merge
(
gulp
.
src
(
sources
,
sourcesOpts
),
gulp
.
src
(
deps
,
depsOpts
));
var
options
=
getTSConfig
(
plugin
);
return
src
.
pipe
(
pipeline
())
.
pipe
(
gulp
.
dest
(
'
extensions/
'
+
name
+
'
/out
'
));
});
if
(
options
)
{
var
sources
=
'
extensions/
'
+
name
+
'
/src/**
'
;
var
deps
=
[
'
src/vs/vscode.d.ts
'
,
'
src/typings/mocha.d.ts
'
,
'
extensions/declares.d.ts
'
,
'
extensions/node.d.ts
'
,
'
extensions/lib.core.d.ts
'
];
var
pipeline
=
(
function
()
{
var
reporter
=
quiet
?
null
:
createReporter
();
var
compilation
=
tsb
.
create
(
options
,
null
,
null
,
quiet
?
null
:
function
(
err
)
{
reporter
(
err
.
toString
());
});
return
function
()
{
var
input
=
es
.
through
();
var
tsFilter
=
filter
([
'
**/*.ts
'
,
'
!**/lib/lib*.d.ts
'
],
{
restore
:
true
});
var
output
=
input
.
pipe
(
tsFilter
)
.
pipe
(
compilation
())
.
pipe
(
tsFilter
.
restore
)
.
pipe
(
quiet
?
es
.
through
()
:
reporter
());
return
es
.
duplex
(
input
,
output
);
};
})();
var
sourcesRoot
=
path
.
join
(
pluginRoot
,
'
src
'
);
var
sourcesOpts
=
{
cwd
:
path
.
dirname
(
__dirname
),
base
:
sourcesRoot
};
var
depsOpts
=
{
cwd
:
path
.
dirname
(
__dirname
)
};
gulp
.
task
(
clean
,
function
(
cb
)
{
rimraf
(
path
.
join
(
pluginRoot
,
'
out
'
),
cb
);
});
gulp
.
task
(
compile
,
hasnpmTask
?
[
clean
,
npmInstall
]
:
[
clean
],
function
()
{
var
src
=
es
.
merge
(
gulp
.
src
(
sources
,
sourcesOpts
),
gulp
.
src
(
deps
,
depsOpts
));
return
src
.
pipe
(
pipeline
())
.
pipe
(
gulp
.
dest
(
'
extensions/
'
+
name
+
'
/out
'
));
});
gulp
.
task
(
watch
,
[
clean
],
function
()
{
var
src
=
es
.
merge
(
gulp
.
src
(
sources
,
sourcesOpts
),
gulp
.
src
(
deps
,
depsOpts
));
var
watchSrc
=
es
.
merge
(
watcher
(
sources
,
sourcesOpts
),
watcher
(
deps
,
depsOpts
));
return
watchSrc
.
pipe
(
util
.
incremental
(
pipeline
,
src
))
.
pipe
(
gulp
.
dest
(
'
extensions/
'
+
name
+
'
/out
'
));
});
}
else
{
if
(
hasnpmTask
)
{
gulp
.
task
(
clean
,
noop
);
gulp
.
task
(
compile
,
[
npmInstall
],
noop
);
gulp
.
task
(
watch
,
noop
);
}
else
{
return
null
;
}
}
gulp
.
task
(
watch
,
[
clean
],
function
()
{
var
src
=
es
.
merge
(
gulp
.
src
(
sources
,
sourcesOpts
),
gulp
.
src
(
deps
,
depsOpts
));
var
watchSrc
=
es
.
merge
(
watcher
(
sources
,
sourcesOpts
),
watcher
(
deps
,
depsOpts
));
return
watchSrc
.
pipe
(
util
.
incremental
(
pipeline
,
src
))
.
pipe
(
gulp
.
dest
(
'
extensions/
'
+
name
+
'
/out
'
));
});
return
{
clean
:
clean
,
compile
:
compile
,
watch
:
watch
};
});
// remove null tasks
tasks
=
tasks
.
filter
(
function
(
task
)
{
return
!!
task
;
})
})
.
filter
(
function
(
task
)
{
return
!!
task
;
});
gulp
.
task
(
'
clean-plugins
'
,
tasks
.
map
(
function
(
t
)
{
return
t
.
clean
;
}));
gulp
.
task
(
'
compile-plugins
'
,
tasks
.
map
(
function
(
t
)
{
return
t
.
compile
;
}));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录