我有以下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管道运行时,不会生成文件:-)
有什么建议吗?
发布于 2016-12-07 10:17:29
可能还想尝试运行NPM install。我注意到,我需要安装所有必需的模块,然后在全局范围内执行grunt-cli,然后在本地也执行grunt cli。
- step:
script: # Modify the commands below to build your repository.
- npm install
- npm install -g grunt-cli
- npm install grunt --save-dev
- grunt build可能类似于吞咽。
发布于 2018-05-14 19:35:29
现在可能为时已晚,但对我来说,解决方案是bitbucket区分大小写。
我不得不使用git mv -f Styles.scss style.scss来改变情况,然后它就起作用了!
https://stackoverflow.com/questions/38960459
复制相似问题