-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tooling and and add nix #107
Conversation
add gh action
@@ -0,0 +1,33 @@ | |||
npm-install: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking it's a good idea to declare these as .PHONY
in a makefile, you can skip errors when a file called test
is accidentally created your tests won't run.
bin/cli.js
Outdated
if (typeof arg === "string") return arg.split(" "); | ||
return []; | ||
}) | ||
.default("elm-test-args", []).argv; | ||
|
||
var model = runner.init(argv); | ||
|
||
runner.run(model, function(warnings) { | ||
runner.run(model, function (warnings) { | ||
console.log("warnings", warnings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log("warnings", warnings); | |
console.warn("warnings", warnings); |
AFAIK it goes to stderr in node, which is probably more desirable.
if (err) { | ||
mkdirp(testsDocModulePath) | ||
.then(function () { | ||
fs.writeFile( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be easier to eventually rewrite this in async/await style, but that's perhaps for another PR...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!
adds nix, make and gh-action to run tests:
To develop use:
nix develop --command make watch