Skip to content
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

Merged
merged 4 commits into from
Oct 20, 2023
Merged

Update tooling and and add nix #107

merged 4 commits into from
Oct 20, 2023

Conversation

stoeffel
Copy link
Owner

@stoeffel stoeffel commented Oct 20, 2023

adds nix, make and gh-action to run tests:
To develop use: nix develop --command make watch

@@ -0,0 +1,33 @@
npm-install:
Copy link
Collaborator

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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(
Copy link
Collaborator

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...

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!

@stoeffel stoeffel merged commit 153bfa0 into master Oct 20, 2023
1 check passed
@stoeffel stoeffel deleted the improve branch October 20, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants