Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
102feb6e
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
102feb6e
编写于
4月 10, 2013
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'jjoe64/master' into dev
上级
42b55a79
10e6cae7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
11 deletion
+18
-11
utils/build/build_all.sh
utils/build/build_all.sh
+2
-1
utils/npm/README.md
utils/npm/README.md
+7
-6
utils/npm/build.js
utils/npm/build.js
+9
-4
未找到文件。
utils/build/build_all.sh
浏览文件 @
102feb6e
...
...
@@ -6,4 +6,5 @@ python build.py --include canvas --minify --output ../../build/three-canvas.min.
python build.py
--include
css3d
--minify
--output
../../build/three-css3d.min.js
python build.py
--include
webgl
--minify
--output
../../build/three-webgl.min.js
python build.py
--include
extras
--externs
externs/extras.js
--minify
--output
../../build/three-extras.min.js
python build.py
--include
math
--output
../../build/three-math.js
\ No newline at end of file
python build.py
--include
math
--output
../../build/three-math.js
python build.py
--include
math
--minify
--output
../../build/three-math.min.js
utils/npm/README.md
浏览文件 @
102feb6e
...
...
@@ -2,11 +2,12 @@ To build the npm modules:
1.
install nodejs.
2.
install npm (if it was not installed with nodejs)
3.
determine the version of THREE that you want to publish (usually it is specified in src/Three.js as the REVISION)
4.
increment the fix number above what was previously published if you are re-publishing an existing Three.js version.
5.
add "-dev" to the version number if this is a development branch.
6.
run the follow to build both the three and three-math node modules
3.
install npm module dependencies (see utils/build/package.json)
4.
determine the version of THREE that you want to publish (usually it is specified in src/Three.js as the REVISION)
5.
increment the fix number above what was previously published if you are re-publishing an existing Three.js version.
6.
add "-dev" to the version number if this is a development branch.
7.
run the follow to build both the three and three-math node modules
*
node build.js 0.54.3-dev
7
.
npm publish node_module/three
8
.
npm publish node_module/three-math
8
.
npm publish node_module/three
9
.
npm publish node_module/three-math
utils/npm/build.js
浏览文件 @
102feb6e
...
...
@@ -84,9 +84,14 @@ var buildModule = function ( name, version ) {
copyFile
(
readmeFileName
,
outputReadmeFileName
);
}
// TODO: make this non-Windows specific.
var
cmdExe
=
"
cmd.exe
"
;
var
args
=
[
"
/c
"
,
"
build_all.bat
"
];
var
cmdExe
,
args
;
if
(
process
.
platform
===
'
win32
'
||
process
.
platform
===
'
win64
'
)
{
cmdExe
=
"
cmd.exe
"
;
args
=
[
"
/c
"
,
"
build_all.bat
"
];
}
else
{
cmdExe
=
'
./build_all.sh
'
;
args
=
[];
}
var
opts
=
{
"
cwd
"
:
"
../build
"
};
var
buildAll
=
cp
.
spawn
(
cmdExe
,
args
,
opts
);
...
...
@@ -102,4 +107,4 @@ buildAll.on( 'exit', function ( exitCode ) {
console
.
log
(
"
exitCode:
"
+
exitCode
);
buildModule
(
"
three
"
);
buildModule
(
"
three-math
"
);
});
\ No newline at end of file
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录