Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/400.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 奥雷利亚CLI和大口贝壳_Javascript_Gulp_Aurelia_Gulp Shell - Fatal编程技术网

Javascript 奥雷利亚CLI和大口贝壳

Javascript 奥雷利亚CLI和大口贝壳,javascript,gulp,aurelia,gulp-shell,Javascript,Gulp,Aurelia,Gulp Shell,有没有办法从特定文件夹的上下文执行au build 我的文件夹结构是: - UI |-main | | <aurelia_project_here> | |-another | | <aurelia_project_here> | |-gulpfile.js 我需要在各自的aurelia项目目录的上下文中执行shell。。。。除非您可以将它们指定给aurelia cli使用gulp shell: gulp.task('build-main',

有没有办法从特定文件夹的上下文执行
au build

我的文件夹结构是:

- UI
  |-main
  | | <aurelia_project_here>
  |
  |-another
  | | <aurelia_project_here>
  |
  |-gulpfile.js
我需要在各自的aurelia项目目录的上下文中执行shell。。。。除非您可以将它们指定给aurelia cli

使用
gulp shell

gulp.task('build-main', shell.task('au build', {cwd:'main'}));
gulp.task('build-another', shell.task('au build', {cwd:'another'}));
gulp.task('build-main', shell.task('au build', {cwd:'main'}));
gulp.task('build-another', shell.task('au build', {cwd:'another'}));