grunt-shell:运行shell命令

时间:2021-02-27 18:00:16
【文件属性】:
文件名称:grunt-shell:运行shell命令
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-27 18:00:16
JavaScript 外壳 运行shell命令 与其他CLI工具进行交互的好方法。 例如,使用git branch获得当前的Git git branch 。 安装 $ npm install --save-dev grunt-shell 用法 require ( 'load-grunt-tasks' ) ( grunt ) ; grunt . initConfig ( { shell : { options : { stderr : false } , target : { command : 'ls' } , another : 'ls ./src' // Shorthand } } ) ; grunt . registerTask ( 'default' , [ 'shell' ] ) ; 例子 运行命令 创建一个名为test的文件夹。 grunt . initConf
【文件预览】:
grunt-shell-main
----.gitignore(23B)
----gruntfile.js(2KB)
----package.json(712B)
----.npmrc(19B)
----.github()
--------workflows()
--------funding.yml(113B)
----license(1KB)
----readme.md(4KB)
----.gitattributes(19B)
----tasks()
--------shell.js(2KB)
----.editorconfig(175B)

网友评论