grunt-log:将信息记录为艰巨的任务

时间:2021-05-11 20:06:41
【文件属性】:
文件名称:grunt-log:将信息记录为艰巨的任务
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-11 20:06:41
JavaScript 咕log声日志 艰巨的任务,轻松输出日志语句。 grunt . registerTask ( 'build' , [ 'log:build started' , 'jshint' , 'less' , 'log:hint and less done' , ( ... other build steps . . . ) , 'log: build finished' ] ) ; 安装 您需要已经安装了node,npm和grunt,然后: npm install grunt-log --save-dev 插件安装完成后,将其加载到您的Gruntfile中。 我建议使用 ,但是您可以通过添加到Gruntfile中来完成传统的痛苦操作: grunt . loadNpmTasks ( 'grunt-log' ) ; 用法 只需调用log任务,并将消息作为其第一个参数(
【文件预览】:
grunt-log-master
----.jshintrc(191B)
----Gruntfile.js(5KB)
----tasks()
--------log.js(488B)
----LICENSE(1KB)
----test()
--------nodeunit()
----README.md(2KB)
----.jscsrc(23B)
----.editorconfig(188B)
----.gitignore(287B)
----package.json(927B)

网友评论