mirror of https://github.com/CesiumGS/obj2gltf.git
Merge branch 'master' into major-cleanup
This commit is contained in:
commit
3d5e72b3a4
|
@ -1,10 +1,11 @@
|
||||||
/.idea
|
/.idea
|
||||||
|
/coverage
|
||||||
/doc
|
/doc
|
||||||
|
/output
|
||||||
/specs
|
/specs
|
||||||
/test
|
/test
|
||||||
/output
|
/output
|
||||||
/typings
|
/typings
|
||||||
/coverage
|
|
||||||
.jshintrc
|
.jshintrc
|
||||||
.npmignore
|
.npmignore
|
||||||
.travis.yml
|
.travis.yml
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 4
|
- "4"
|
||||||
|
- "6"
|
||||||
script:
|
script:
|
||||||
- npm run jsHint -- --failTaskOnError
|
- npm run jsHint -- --failTaskOnError
|
||||||
- npm run test -- --failTaskOnError --suppressPassed
|
- npm run test -- --failTaskOnError --suppressPassed
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
Change Log
|
Change Log
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
### 0.1.7 2017-01-06
|
||||||
|
|
||||||
|
* Update gltf-pipeline to 0.1.0-alpha9
|
||||||
|
* Added command to generate documentation (npm run jsdoc)
|
||||||
|
|
||||||
### 0.1.6 2016-09-07
|
### 0.1.6 2016-09-07
|
||||||
|
|
||||||
* Changed obj2gltf.js line endings from CRLF to LF in npm package.
|
* Changed obj2gltf.js line endings from CRLF to LF in npm package.
|
||||||
|
|
39
README.md
39
README.md
|
@ -49,6 +49,45 @@ Using obj2gltf as a command-line tool:
|
||||||
|`--ao`|Apply ambient occlusion to the converted model.|No, default `false`|
|
|`--ao`|Apply ambient occlusion to the converted model.|No, default `false`|
|
||||||
|`--bypassPipeline`|Bypass the gltf-pipeline for debugging purposes. This option overrides many of the options above and will save the glTF with the KHR_materials_common extension.|No, default `false`|
|
|`--bypassPipeline`|Bypass the gltf-pipeline for debugging purposes. This option overrides many of the options above and will save the glTF with the KHR_materials_common extension.|No, default `false`|
|
||||||
|
|
||||||
|
## Build Instructions
|
||||||
|
|
||||||
|
Run the tests:
|
||||||
|
```
|
||||||
|
npm run test
|
||||||
|
```
|
||||||
|
To run JSHint on the entire codebase, run:
|
||||||
|
```
|
||||||
|
npm run jsHint
|
||||||
|
```
|
||||||
|
To run JSHint automatically when a file is saved, run the following and leave it open in a console window:
|
||||||
|
```
|
||||||
|
npm run jsHint-watch
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running Test Coverage
|
||||||
|
|
||||||
|
Coverage uses [istanbul](https://github.com/gotwarlost/istanbul). Run:
|
||||||
|
```
|
||||||
|
npm run coverage
|
||||||
|
```
|
||||||
|
For complete coverage details, open `coverage/lcov-report/index.html`.
|
||||||
|
|
||||||
|
The tests and coverage covers the Node.js module; it does not cover the command-line interface, which is tiny.
|
||||||
|
|
||||||
|
## Generating Documentation
|
||||||
|
|
||||||
|
To generate the documentation:
|
||||||
|
```
|
||||||
|
npm run jsdoc
|
||||||
|
```
|
||||||
|
|
||||||
|
The documentation will be placed in the `doc` folder.
|
||||||
|
|
||||||
|
### Debugging
|
||||||
|
|
||||||
|
* To debug the tests in Webstorm, open the Gulp tab, right click the `test` task, and click `Debug 'test'`.
|
||||||
|
* To run a single test, change the test function from `it` to `fit`.
|
||||||
|
|
||||||
## Contributions
|
## Contributions
|
||||||
|
|
||||||
Pull requests are appreciated. Please use the same [Contributor License Agreement (CLA)](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md) used for [Cesium](http://cesiumjs.org/).
|
Pull requests are appreciated. Please use the same [Contributor License Agreement (CLA)](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md) used for [Cesium](http://cesiumjs.org/).
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "obj2gltf",
|
"name": "obj2gltf",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"description": "Convert OBJ model format to glTF",
|
"description": "Convert OBJ model format to glTF",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
|
@ -47,11 +47,13 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "typings install",
|
"prepublish": "typings install",
|
||||||
|
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
|
||||||
"jsHint": "gulp jsHint",
|
"jsHint": "gulp jsHint",
|
||||||
"jsHint-watch": "gulp jsHint-watch",
|
"jsHint-watch": "gulp jsHint-watch",
|
||||||
"test": "gulp test",
|
"test": "gulp test",
|
||||||
"test-watch": "gulp test-watch",
|
"test-watch": "gulp test-watch",
|
||||||
"coverage": "gulp coverage"
|
"coverage": "gulp coverage",
|
||||||
|
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"obj2gltf": "./bin/obj2gltf.js"
|
"obj2gltf": "./bin/obj2gltf.js"
|
||||||
|
|
Loading…
Reference in New Issue