Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('jshint', [], function(){
return gulp.src([
gulp.paths.src + '**/*.js',
//gulp.paths.src + '/models/**/*.js',
//gulp.paths.src + '/routes/**/*.js'
])
// .pipe(jshint())
// .pipe(jshint.reporter('default'))
// .pipe(jshint.reporter('fail'));
});
'use strict';
var gulp = require('gulp');
var paths = gulp.paths;
var $ = require('gulp-load-plugins')();
gulp.task('styles', function () {
var sassOptions = {
style: 'expanded'
};
var injectFiles = gulp.src([
paths.src + '/{app,components}/**/*.scss',
'!' + paths.src + '/app/index.scss',
'!' + paths.src + '/app/vendor.scss'
], { read: false });
var injectOptions = {
'use strict';
var gulp = require('gulp');
gulp.paths = {
src: 'src',
dist: 'dist',
tmp: '.tmp',
e2e: 'e2e',
vlui: '../polestar/'
};
require('require-dir')('./gulp');
gulp.task('default', ['clean'], function () {
gulp.start('build');
});
gulp.task('compile', ['jshint', 'clean'], function () {
return gulp.src([
gulp.paths.src + '/**/*',
"!" + gulp.paths.src + '/tests/**',
"!" + gulp.paths.src + "/**/config.local.js",
"!" + gulp.paths.src + "/**/config.development.js",
"!" + gulp.paths.src + "/**/config.production.js",
])
.pipe(gulp.dest(gulp.paths.build))
.on('error', gutil.log);
});
'use strict';
const Gulp = require('gulp');
Gulp.paths = {
src: './api',
build: './build',
tmp: './tmp',
dev: 'dev'
};
require('require-dir')('./gulp');
Gulp.task('default', function () {
Gulp.start('serve:local');
});
'use strict';
var gulp = require('gulp');
var paths = gulp.paths;
var $ = require('gulp-load-plugins')();
var BROWSERLIST = ['last 2 versions', '> 1%', 'Firefox ESR', 'Firefox >= 18'];
gulp.task('styles', function() {
var sassOptions = {
outputStyle: 'expanded'
};
var injectFiles = gulp.src([
paths.src + '/{app,components}/**/*.scss',
'!' + paths.src + '/app/index.scss',
'!' + paths.src + '/app/vendor.scss'
], {
read: false
gulp.task('compile', ['jshint', 'clean'], function () {
return gulp.src([
gulp.paths.src + '/**/*',
"!" + gulp.paths.src + '/tests/**',
"!" + gulp.paths.src + "/**/config.local.js",
"!" + gulp.paths.src + "/**/config.development.js",
"!" + gulp.paths.src + "/**/config.production.js",
])
.pipe(gulp.dest(gulp.paths.build))
.on('error', gutil.log);
});
'use strict';
var gulp = require('gulp');
gulp.paths = {
src: 'src',
dist: 'dist',
demo: 'demo',
tmp: '.tmp',
e2e: 'e2e',
bower: 'bower_components'
};
require('require-dir')('./gulp');
gulp.task('default', ['clean'], function () {
gulp.start('build');
});
'use strict';
var gulp = require('gulp');
var paths = gulp.paths;
var $ = require('gulp-load-plugins')();
var wiredep = require('wiredep').stream;
gulp.task('inject', ['styles'], function () {
var injectStyles = gulp.src(paths.tmp + '/serve/**/*.css', { read: false });
var injectScripts = gulp.src([
paths.src + '/**/*.js',
'!' + paths.src + '/app.module.js',
'!' + paths.src + '/app.utils.js',
'!' + paths.src + '/app.loading.js',
'!' + paths.src + '/**/*.spec.js'
]).pipe($.angularFilesort()).pipe($.angularFilesort());
/*******************************************************************************
* Copyright (c) 2015 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
'use strict';
var gulp = require('gulp');
var paths = gulp.paths;
var $ = require('gulp-load-plugins')();
gulp.task('styles', function () {
var injectFiles = gulp.src([
paths.src + '/{app,components}/**/*.styl',
'!' + paths.src + '/app/index.styl',
'!' + paths.src + '/app/vendor.styl'
], { read: false });
var injectOptions = {
transform: function(filePath) {
filePath = filePath.replace(paths.src + '/app/', '');
filePath = filePath.replace(paths.src + '/components/', '../components/');