diff --git a/client/.nycrc b/client/.nycrc index 699cc18dbc..c315eb5e3e 100644 --- a/client/.nycrc +++ b/client/.nycrc @@ -1,7 +1,7 @@ { "reporter": ["lcov", "text-summary"], - "include": ["build/js/**/*"], - "exclude": ["cypress/**/*", "node_modules/**/*", "app/**/*", "build/lib/**/*"], + "include": ["app/js/**/*"], + "exclude": ["app/lib/**/*"], "check-coverage": false, "report-dir": "cypress/coverage", "sourceMap": false diff --git a/client/Gruntfile.js b/client/Gruntfile.js index f06b0841fb..3bf525123f 100644 --- a/client/Gruntfile.js +++ b/client/Gruntfile.js @@ -111,18 +111,6 @@ module.exports = function(grunt) { } ] - }, - coverage: { - files: [{ - dest: "build/", - cwd: "app/", - src: [ - "**", - "lib/js/*.js", // and copy scripts that should not be instrumented. - "lib/js/locale/*.js" - ], - expand: true - }] } }, @@ -427,9 +415,10 @@ module.exports = function(grunt) { } } }, + shell: { babel: { - command: "npx babel build/js --out-dir build/js" + command: "npx babel app/js --out-dir app/js" } } }); @@ -1057,7 +1046,6 @@ module.exports = function(grunt) { grunt.registerTask("instrument-client", [ "clean", "copy:sources", - "copy:coverage", "shell:babel" ]); };