update documentation
This commit is contained in:
parent
0ec526d9a2
commit
c871972a21
2 changed files with 10 additions and 3 deletions
File diff suppressed because one or more lines are too long
7
make
7
make
|
|
@ -45,9 +45,16 @@ build(){
|
||||||
haxe build.hxml
|
haxe build.hxml
|
||||||
ok=$?
|
ok=$?
|
||||||
sed -i 's|.*nonlocal .*||g' dist/xrfragment.py
|
sed -i 's|.*nonlocal .*||g' dist/xrfragment.py
|
||||||
|
build_js
|
||||||
|
}
|
||||||
|
|
||||||
|
build_js(){
|
||||||
# add js module
|
# add js module
|
||||||
cp dist/xrfragment.js dist/xrfragment.module.js
|
cp dist/xrfragment.js dist/xrfragment.module.js
|
||||||
echo "export default xrfragment;" >> dist/xrfragment.module.js
|
echo "export default xrfragment;" >> dist/xrfragment.module.js
|
||||||
|
# add THREE module
|
||||||
|
cat dist/xrfragment.js src/three/*.js src/three/xrf/*.js > dist/xrfragment.three.js
|
||||||
|
echo "export default xrfragment;" >> dist/xrfragment.three.js
|
||||||
exit $ok
|
exit $ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue