Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c04085ad
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,体验更适合开发者的 AI 搜索 >>
提交
c04085ad
编写于
11月 13, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yarn: initial commit
上级
4e172cd1
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
5992 addition
and
21 deletion
+5992
-21
.yarnrc
.yarnrc
+3
-0
build/gulpfile.hygiene.js
build/gulpfile.hygiene.js
+1
-0
build/npm/postinstall.js
build/npm/postinstall.js
+12
-10
build/npm/preinstall.js
build/npm/preinstall.js
+3
-8
npm-shrinkwrap.json
npm-shrinkwrap.json
+3
-3
yarn.lock
yarn.lock
+5970
-0
未找到文件。
.yarnrc
0 → 100644
浏览文件 @
c04085ad
disturl "https://atom.io/download/electron"
target "1.7.9"
runtime "electron"
build/gulpfile.hygiene.js
浏览文件 @
c04085ad
...
...
@@ -57,6 +57,7 @@ const indentationFilter = [
'
!**/*.template
'
,
'
!**/*.yaml
'
,
'
!**/*.yml
'
,
'
!**/yarn.lock
'
,
'
!**/lib/**
'
,
'
!extensions/**/*.d.ts
'
,
'
!src/typings/**/*.d.ts
'
,
...
...
build/npm/postinstall.js
浏览文件 @
c04085ad
...
...
@@ -5,21 +5,23 @@
const
cp
=
require
(
'
child_process
'
);
const
path
=
require
(
'
path
'
);
const
npm
=
process
.
platform
===
'
win32
'
?
'
npm.cmd
'
:
'
npm
'
;
const
yarn
=
process
.
platform
===
'
win32
'
?
'
yarn.cmd
'
:
'
yarn
'
;
function
npmInstall
(
location
,
opts
)
{
process
.
exit
(
0
);
function
yarnInstall
(
location
,
opts
)
{
opts
=
opts
||
{};
opts
.
cwd
=
location
;
opts
.
stdio
=
'
inherit
'
;
const
result
=
cp
.
spawnSync
(
npm
,
[
'
install
'
],
opts
);
const
result
=
cp
.
spawnSync
(
yarn
,
[
'
install
'
],
opts
);
if
(
result
.
error
||
result
.
status
!==
0
)
{
process
.
exit
(
1
);
}
}
npm
Install
(
'
extensions
'
);
// node modules shared by all extensions
yarn
Install
(
'
extensions
'
);
// node modules shared by all extensions
const
extensions
=
[
'
vscode-api-tests
'
,
...
...
@@ -43,9 +45,9 @@ const extensions = [
'
jake
'
];
extensions
.
forEach
(
extension
=>
npm
Install
(
`extensions/
${
extension
}
`
));
extensions
.
forEach
(
extension
=>
yarn
Install
(
`extensions/
${
extension
}
`
));
function
npm
InstallBuildDependencies
()
{
function
yarn
InstallBuildDependencies
()
{
// make sure we install gulp watch for the system installed
// node, since that is the driver of gulp
const
env
=
Object
.
assign
({},
process
.
env
);
...
...
@@ -54,9 +56,9 @@ function npmInstallBuildDependencies() {
delete
env
[
'
npm_config_target
'
];
delete
env
[
'
npm_config_runtime
'
];
npm
Install
(
path
.
join
(
path
.
dirname
(
__dirname
),
'
lib
'
,
'
watch
'
),
{
env
});
yarn
Install
(
path
.
join
(
path
.
dirname
(
__dirname
),
'
lib
'
,
'
watch
'
),
{
env
});
}
npmInstall
(
`build`
);
// node modules required for build
npmInstall
(
'
test/smoke
'
);
// node modules required for smoketest
npmInstallBuildDependencies
();
// node modules for watching, specific to host node version, not electron
\ No newline at end of file
yarnInstall
(
`build`
);
// node modules required for build
yarnInstall
(
'
test/smoke
'
);
// node modules required for smoketest
yarnInstallBuildDependencies
();
// node modules for watching, specific to host node version, not electron
\ No newline at end of file
build/npm/preinstall.js
浏览文件 @
c04085ad
...
...
@@ -3,13 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
if
(
process
.
env
[
'
npm_config_disturl
'
]
!==
'
https://atom.io/download/electron
'
)
{
console
.
error
(
"
You can't use plain npm to install Code's dependencies.
"
);
console
.
error
(
/^win/
.
test
(
process
.
platform
)
?
"
Please run '.
\\
scripts
\\
npm.bat install' instead.
"
:
"
Please run './scripts/npm.sh install' instead.
"
);
if
(
!
/yarn
\.
js$/
.
test
(
process
.
env
[
'
npm_execpath
'
]))
{
console
.
error
(
'
*** Please use yarn to install dependencies.
\n
'
);
process
.
exit
(
1
);
}
\ No newline at end of file
}
npm-shrinkwrap.json
浏览文件 @
c04085ad
...
...
@@ -306,9 +306,9 @@
"resolved"
:
"https://registry.npmjs.org/node-pty/-/node-pty-0.7.3.tgz"
,
"dependencies"
:
{
"nan"
:
{
"version"
:
"2.
5.0
"
,
"from"
:
"nan@2.
5.0
"
,
"resolved"
:
"https://registry.npmjs.org/nan/-/nan-2.
5.0
.tgz"
"version"
:
"2.
6.2
"
,
"from"
:
"nan@2.
6.2
"
,
"resolved"
:
"https://registry.npmjs.org/nan/-/nan-2.
6.2
.tgz"
}
}
},
...
...
yarn.lock
0 → 100644
浏览文件 @
c04085ad
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录