-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 0.5.1 * Including polyfill to Reflection API into the factories * Removing support from MultiAntPath and the legacy leaflet (0.7.7 and below) * Successfully generating a coverage report with webpack and instabul Putting coverage on CI steps * Import correction * Setting the polyfills as part of the entry point * Implemented the "setStyle" path method * Following more strictly the leaflet 1.x interface * 0.6.0 * Travis corrections
- Loading branch information
1 parent
65dd62b
commit 5bec858
Showing
19 changed files
with
225 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ dist/ | |
node_modules/ | ||
coverage/ | ||
*.log | ||
.wbprofile.json | ||
.wbprofile.json | ||
webpack.tests.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const istanbul = require("istanbul"); | ||
const path = require("path"); | ||
const collector = new istanbul.Collector(); | ||
const reporter = new istanbul.Reporter(); | ||
|
||
const remappedJson = require(path.resolve(__dirname, "../coverage/remapped.json")); | ||
const coverage = Object.keys(remappedJson).reduce((result, source) => { | ||
// only keep js files under src/ | ||
const sourceRegExp = /src\/plugin\/.*\.js$/; | ||
const matched = source.match(sourceRegExp); | ||
|
||
if (matched) { | ||
const realPath = matched[0]; | ||
result[realPath] = remappedJson[source]; | ||
} | ||
|
||
return result; | ||
}, {}); | ||
|
||
collector.add(coverage); | ||
|
||
reporter.add("lcovonly"); | ||
reporter.add("html"); | ||
|
||
reporter.write( | ||
collector, | ||
true, | ||
() => console.info("Report clean!") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.