我有以下gulpfile.js:
// including plugins
var gulp = require('gulp')
, less = require("gulp-less");
// task
gulp.task('compile-less', function () {
gulp.src('/less/*') // path to your file
.pipe(less())
.pipe(gulp.dest('../Build/Productive/Less/'));
});

并跟随bitbucket管道配置文件:
image: node:5.11.0
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- npm --version
- npm install -g gulp
- npm install gulp --save-dev
- npm install gulp-less --save-dev
- gulp compile-less

在我的本地机器上,css文件输出在右侧文件夹中..但是当bitbucket管道运行时,文件不会生成: - )
任何建议?
答案 0 :(得分:0)
也可以尝试运行NPM安装。我注意到我需要安装所有必需的模块,然后全局grunt-cli,然后在本地grunt。
- step:
script: # Modify the commands below to build your repository.
- npm install
- npm install -g grunt-cli
- npm install grunt --save-dev
- grunt build
可能与gulp相似。
答案 1 :(得分:-2)
可能到现在为止,但对我来说解决方案是bitbucket区分大小写。
我必须使用git mv -f Styles.scss style.scss
来更改案例,然后才有效!