elm-doc-test
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -78,3 +78,3 @@ // imports | ||
function generate(config) { | ||
function generate(config, allTestsGenerated) { | ||
var testsPath = path.join( | ||
@@ -116,2 +116,3 @@ process.cwd(), | ||
var writtenTests = 0; | ||
app.ports.writeFile.subscribe(function(data) { | ||
@@ -151,2 +152,7 @@ var test = data[1]; | ||
} | ||
writtenTests = writtenTests + 1; | ||
if (writtenTests === config.tests.length && allTestsGenerated) { | ||
allTestsGenerated(); | ||
} | ||
}); | ||
@@ -153,0 +159,0 @@ }); |
{ | ||
"name": "elm-doc-test", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "doc-test for elm", | ||
@@ -13,5 +13,5 @@ "main": "index.js", | ||
"prepublish": "npm run-script elm-make", | ||
"test": "npm start", | ||
"test": "./run-tests.sh", | ||
"elm-make": "elm-make src/DocTest.elm --output bin/elm.js", | ||
"start": "npm run-script elm-make && cd example && ../bin/cli.js && elm-test tests/Doc/Main.elm", | ||
"start": "npm run-script elm-make && cd example && ../bin/cli.js && ../node_modules/.bin/elm-test tests/Doc/Main.elm", | ||
"release-major": "xyz --repo git@github.com:stoeffel/elm-doc-test.git --increment major", | ||
@@ -37,4 +37,6 @@ "release-minor": "xyz --repo git@github.com:stoeffel/elm-doc-test.git --increment minor", | ||
"devDependencies": { | ||
"elm": "^0.18.0", | ||
"elm-test": "^0.18.2", | ||
"xyz": "^1.1.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
elm-doc-test | ||
elm-doc-test [![Build Status](https://travis-ci.org/stoeffel/elm-doc-test.svg?branch=master)](https://travis-ci.org/stoeffel/elm-doc-test) | ||
============ | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
779482
25
29243
3