todo-webpack-plugin:Webpack插件生成TODO报告(markdown,json,xml或文本格式),还可

  • u2_259629
    了解作者
  • 142.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-12 18:34
    上传日期
todo-webpack-plugin 带给您 npm链接 概述 Webpack插件生成TODO报告(markdown,json,xml或文本格式),并可选地stdout到stdout (控制台) 入门 安装插件 $ npm i -D todo-webpack-plugin 将插件导入webpack.config.js var TodoWebpackPlugin = require('todo-webpack-plugin'); 或ES6 import TodoWebpackPlugin from 'todo-webpack-plugin' 将插件添加到webpack.config.js插件部分 // configure plugin to send output to console in addition to default file plugins: [ new T
todo-webpack-plugin-master.zip
  • todo-webpack-plugin-master
  • .travis.yml
    119B
  • index.js
    2.7KB
  • package.json
    1.3KB
  • test
  • index.spec.js
    1.3KB
  • CHANGELOG
    1.7KB
  • LICENSE
    1.1KB
  • package-lock.json
    574.7KB
  • TODO.md
    205B
  • .eslintrc.js
    565B
  • .gitignore
    106B
  • webpack.config.js
    292B
  • test_app
  • index.js
    187B
  • README.md
    2.9KB
  • .eslintignore
    25B
  • .editorconfig
    263B
内容介绍
# todo-webpack-plugin Brought to you by [codedungeon](http://www.codedungeon.io) npm link [https://www.npmjs.com/package/todo-webpack-plugin](https://www.npmjs.com/package/todo-webpack-plugin) ## Overview Webpack Plugin to generate TODO report (markdown, json, xml or text format) and optionally to `stdout` (console) ## Getting Started 1. Install plugin `$ npm i -D todo-webpack-plugin` 2. Import plugin into webpack.config.js `var TodoWebpackPlugin = require('todo-webpack-plugin');` or ES6 `import TodoWebpackPlugin from 'todo-webpack-plugin'` 3. Add plugin to plugin section of `webpack.config.js` ```javascript // configure plugin to send output to console in addition to default file plugins: [ new TodoWebpackPlugin({ console: true, }) ] // configure plugin to create output file plugins: [ new TodoWebpackPlugin({ console: true, // tags: ['error','info'], // default will be TODO, FIXME // reporter: 'json', // default `markdown` // filename: 'todo.json', // default `TODO.md` // skipUnsupported: true, // skip unsupported files // suppressFileOutput: false, // suppress file output to disk // relativeFilePath: true , // display relative file paths // withInlineFiles: false , // support inline js (ie Vue) }) ] ``` ## Plugin Options ```bash variable type default description =========================================================================================== tags array todo, fixme list of optional objects to watch reporter string markdown markdown | xml | json | text filename string TODO.md TODO.md | todo.xml | todo.json | todo.txt console boolean true output report to console ( true | false ) skipUnsupported boolean true skip unsupported files ( true | false ) suppressFileOutput boolean false suppress output file to disk relativeFilePaths boolean true display relative file paths ( true | false ) ``` ## Things To Know These are some things I figured you should know (this will be expanded) - Plugin ignores `node_modules` globally (ala ESLint) - Plugin uses [leasot](https://github.com/pgilad/leasot) internally - Project inspired by [gulp-todo](https://www.npmjs.com/package/gulp-todo) - you can run tests (note: tests incomplete at the moment, just placeholder) `$ npm test` - you can run linting `$ npm run lint` ## Credits todo-webpack-plugin written by Mike Erickson E-Mail: [codedungeon@gmail.com](mailto:codedungeon@gmail.com) Twitter: [@codedungeon](http://twitter.com/codedungeon) Website: [codedungeon.io](http://codedungeon.io)
评论
    相关推荐
    • webpack-react
      npm install --save-dev webpack webpack-dev-server 添加React软件包: npm install --save react react-dom 添加Babel软件包: npm install --save-dev @babel/core @babel/preset-env @babel/preset-react @...
    • reactwebpack
      Reactwebpack设置 配置webpack 4 react 16,babel装饰器 入门 这些说明将为您提供在本地计算机上运行并运行的项目的副本,以进行开发和测试。 有关如何在实时系统上部署项目的注释,请参阅部署。 先决条件 您需要...
    • webpack-skeleton
      webpack-骨架 建造 $ npm install $ bower install $ webpack 开发 $ webpack -w
    • webpack-npm-demo.zip
      Webpack| Webpack npm方式启动: webpack-npm-demo.zip
    • webpack-basics
      webpack基础 用于制作基本的webpack react应用程序的模板。 npm i要安装节点依赖项 npm run dev来构建dev dist npm start提供该应用程序
    • webpack演示
      Webpack与React结合使用的演示还可以测试cypress UI测试吗? 启动运行脚本npm run dev测试运行脚本npm run test
    • restaurant-page:NPMWebpack项目
      餐厅页面 NPMWebpack项目
    • WebPack-lab
      Webpack React入门项目 这个项目是一个完整的React项目,没有使用我们最喜欢的Create-React-App CLI构建。 所有文件和文件夹均已手动设置,以了解webpack的内部行为。 要使用此项目,请遵循以下简单步骤。 从分叉...
    • npm.cnpm.webpack.nvm
      webpack开发环境搭建,里面有压缩文件以及安装文档说明,纯手写。
    • webpack-study
      npm install npm build 前言 随着MVVM框架的流行,各个框架都有各自的脚手架,只需要知道几个npm简单的运行命令行,下载命令行等等。我们似乎不用太费力去学习webpack,但是当有些需求是脚手架无法满足的时候,我们...