TOPIC: eslint and teamcity
3 years 1 month ago #8
  • carl
  • carl's Avatar
  • Administrator
  • Posts: 4
  • Karma: 0
I am trying to install eslint onto a Windows TeamCity install
In a dos Window ( after exporting proxy settings )
• npm install -g npm
• npm install -g gulp
npm install gulp-eslint -g
I put -g global so Teamcity would see it then
In buildAgent I put .eslintrc and gulpfile.js
eslint-teamcity
The administrator has disabled public write access.
3 years 1 month ago #55
  • carl
  • carl's Avatar
  • Administrator
  • Posts: 4
  • Karma: 0
Now trying to get it working on a second server and stuck on
Please install 'gulp' as project-local Node.js NPM package
Steps so far
Installed node-v4.4.7-x86.msi I think you need Node.js to run npm
using npm
•npm install -g gulp Tried local as well
npm install gulp-eslint -g -g means global have not tried without -g
npm install eslint-teamcity --save-dev
 npm install --save-dev gulp-teamcity-reporter
Perhaps need a gulpfile.js in c:teamcity
after doing npm install gulp-eslint without -g
c:\TeamCity\buildAgent> gulp
[12:10:42] Using gulpfile c:\TeamCity\buildAgent\gulpfile.js
[12:10:42] Task 'default' is not in your gulpfile
[12:10:42] Please check the documentation for proper gulpfile formatting

c:\TeamCity\buildAgent>
gulpfile.js
var gulp = require('gulp'),
eslint = require('gulp-eslint'),
teamcity = require('eslint-teamcity');

gulp.task('lint', function () {
return gulp.src()
.pipe(eslint())
.pipe(eslint.format(teamcity))
.pipe(eslint.failAfterError());
});
Last Edit: 3 years 1 month ago by carl.
The administrator has disabled public write access.