b324cd3b6b
Both jshint and jslint contain the 'do no evil' license which makes it unusable for OpenStack. This patch switches this project to use eslint, the published eslint-config-openstack rules, and the john-papa eslint style guides. It also adds the 'npm run lint' command used by infra in the javascript-jobs macro. Change-Id: I724d3a12fb5b9c85446adcd07c03a676e966bd41
22 lines
505 B
JavaScript
22 lines
505 B
JavaScript
'use strict';
|
|
|
|
var config = require('../config');
|
|
var gulp = require('gulp');
|
|
var templateCache = require('gulp-angular-templatecache');
|
|
|
|
// Views task
|
|
gulp.task('views', function() {
|
|
|
|
// Put our index.html in the dist folder
|
|
gulp.src('app/index.html')
|
|
.pipe(gulp.dest(config.dist.root));
|
|
|
|
// Process any other view files from app/views
|
|
return gulp.src(config.views.src)
|
|
.pipe(templateCache({
|
|
standalone: true
|
|
}))
|
|
.pipe(gulp.dest(config.views.dest));
|
|
|
|
});
|