You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so that I dont need to run depcheck-es6 in my terminal everytime and I can make it to automate.
I looked at API section but not sure how to do it. Is it possible to integrate in webpack to
varpath=require('path');vardepcheck=require('depcheck-es6');varoptions={withoutDev: false,// check against devDependenciesignoreBinPackage: false,// ignore the packages with bin entryignoreDirs: [// folder with these names will be ignored'sandbox','dist','bower_components'],ignoreMatches: [// ignore dependencies that matches these globs'grunt-*'],parsers: {// the target parsers'*.js': depcheck.parser.es6,'*.jsx': depcheck.parser.jsx},detectors: [// the target detectorsdepcheck.detector.requireCallExpression,depcheck.detector.importDeclaration],specials: [// the target special parsersdepcheck.special.eslint,depcheck.special.webpack]};depcheck('/path/to/your/project',options,function(unused){console.log(unused.dependencies);// an array containing the unused dependenciesconsole.log(unused.devDependencies);// an array containing the unused devDependenciesconsole.log(unused.invalidFiles);// files that cannot access or parseconsole.log(unused.invalidDirs);// directories that cannot access});
The text was updated successfully, but these errors were encountered:
Perhaps it would be smarter to solve this problem outside of webpack? Set up a custom npm script for it for example. You can trigger the script through your CI or something like git-prepush-hook to match that automation requirement.
I have a sample app is it possible to integrate depcheck-es6 package in the below app
https://github.com/rackt/redux/tree/master/examples/todomvc
so that I dont need to run depcheck-es6 in my terminal everytime and I can make it to automate.
I looked at API section but not sure how to do it. Is it possible to integrate in webpack to
The text was updated successfully, but these errors were encountered: