在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sun-zheng-an/gulp-shell开源软件地址(OpenSource Url):https://github.com/sun-zheng-an/gulp-shell开源编程语言(OpenSource Language):TypeScript 98.9%开源软件介绍(OpenSource Introduction):gulp-shell
Installationnpm install --save-dev gulp-shell Usageconst gulp = require('gulp')
const shell = require('gulp-shell')
gulp.task('example', () => {
return gulp
.src('*.js', { read: false })
.pipe(shell(['echo <%= file.path %>']))
}) Or you can use this shorthand: gulp.task('greet', shell.task('echo Hello, World!')) You can find more examples in the gulpfile of this project. WARNING: Running commands like APIshell(commands, options) or shell.task(commands, options)commandstype: A command can be a template which can be interpolated by some file info (e.g. WARNING: Using command templates can be extremely dangerous. Don't shoot yourself in the foot by options.cwdtype: default: Sets the current working directory for the command. This can be a template which can be interpolated by some file info (e.g. options.envtype: By default, all the commands will be executed in an environment with all the variables in You can override any environment variables with this option. For example, setting it to options.shelltype: default: Change it to options.quiettype: default: By default, it will print the command output. options.verbosetype: default: Set to options.ignoreErrorstype: default: By default, it will emit an options.errorMessagetype: default: You can add a custom error message for when the command fails.
This can be a template which can be interpolated with the current options.templateDatatype: The data that can be accessed in template. ChangelogDetails changes for each release are documented in the release notes. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论