Set up testing with Ava

This commit is contained in:
Glen Whitney 2019-12-11 12:07:43 -05:00
parent eb81cee609
commit c3995d6fcb
6 changed files with 3884 additions and 31 deletions

View file

@ -2,25 +2,22 @@
"name": "dyna3",
"version": "0.1.0",
"description": "Constraint-based three-dimensional dynamic geometry",
"private": "true",
"private": "true",
"main": "dyna3.js",
"scripts": {
"clean": "rm -rf site docbuild",
"doc:extra":
"mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
"doc:collate":
"mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
"clean": "rm -rf site docbuild dyna3.zip",
"doc:extra": "mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
"doc:collate": "mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
"doc": "npm run doc:extra && npm run doc:collate",
"prebuild": "npm run clean",
"build:coffee": "coffee -o site -c -m src/*.litcoffee",
"build:ext":
"coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
"build:doc":
"npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
"build:ext": "coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
"build:doc": "npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
"build:copy": "cp src/*.html site && cp -r node_modules site",
"build":
"npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
"test": "qunit"
"build": "npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
"dist": "npm run build && zip -r dyna3.zip site",
"pretest": "npm run build && coffee -o __tests__ -c -m coffeetest/*.coffee",
"test": "ava"
},
"repository": {
"type": "git",
@ -35,5 +32,14 @@
"dependencies": {
"three": "latest"
},
"//": "See doc/tech.md for an overview of the technical structure of dyna3"
"//": "See doc/tech.md for an overview of the technical structure of dyna3",
"devDependencies": {
"ava": "^2.4.0",
"esm": "^3.2.25"
},
"ava": {
"require": [
"esm"
]
}
}