Commit Graph

17 Commits

Author SHA1 Message Date
Pär Winzell 5ec3184a8a
Mocha integration test suite (#150)
This moves ./npm to ./npm/fbx2gltf, and introduces a Mocha / TypeScript based testing harness. 

We're also adding a GIT LFS dependency, but only for people who want to run tests. We're using LFS to store the many FBX models we want to convert to GLB as part of the integration test suite.
2019-01-25 16:01:08 -08:00
Par Winzell 6e527563cd Add more Copyright boilerplate. 2018-10-15 15:24:07 -07:00
Pär Winzell 2fc254ed79
Update example command-line switch 2018-09-08 11:35:10 -07:00
Par Winzell 542550192c Bump NPM version, 2018-03-29 06:24:46 -07:00
Pär Winzell f1982e6ca3 Bump NPM version. 2018-02-19 20:59:44 -08:00
Par Winzell 21305baa93 NPM-publish of patch release 0.9.3. 2017-11-30 23:02:22 -08:00
Par Winzell 3b7872f4f1 NPM-publish of patch release 0.9.2. 2017-11-06 13:26:12 -08:00
Michael Bayne 7f9aa3318a Use .exe suffix on Windows. 2017-10-31 11:33:32 -07:00
Michael Bayne a03e252866 Fix error reporting. 2017-10-27 12:21:13 -07:00
Par Winzell b1076fa373 Default opts to empty array if it's not supplied.
Fixes a NPE on line 33 for a common case.
2017-10-25 13:24:30 -07:00
Par Winzell f535effb8b NPM-publish of patch release 0.9.1. 2017-10-23 20:13:17 -07:00
Pär Winzell dfb026033d Document the new v-flipping default. (#22)
The READMEs need updating, too.
2017-10-22 16:43:20 -07:00
Michael Bayne 946f12361c Numerous improvements to Node API.
- Removed the shell scripts. We now invoke everything straight from Node.

- Allow passing command line arguments to the tool via the Node API.

- Require .glb or .gltf extension because the tool is automatically going to
  add that extension anyway, so we strip it off and add it back to shield the
  user from this weirdness. The tool may eventually stop adding an extension
  (and perhaps just validate it) and we can simplify our code.

- Automatically add --binary option if the requested target file is a .glb.

This also renames the bin/Windows directory to bin/Windows_NT, which is
unfortunate but that matches os.type(). This ultimately comes from uname and
that's what Windows chose to return. Let's just live with this historical
accident rather than try to paper over it.
2017-10-19 13:44:54 -07:00
Michael Bayne 9085b8d284 Add usage docs to README.
Fixes #8.
2017-10-19 11:01:51 -07:00
Par Winzell 606d31997c Supply JSON-critical comma. 2017-10-19 09:15:01 -07:00
Par Winzell f4a48905eb Directories for NPM published binaries.
We may revisit this way of publishing releases, but for now let's make
sure these directories always exist.
2017-10-17 17:35:34 -07:00
Par Winzell 276a0dfb86 Initial commit. 2017-10-13 01:55:11 -07:00