updated npm packages

This commit is contained in:
Keivan Beigi 2016-01-14 18:48:11 -08:00
parent 2b72c0e328
commit 9fc7fceda4
4 changed files with 0 additions and 53 deletions

View File

@ -7,7 +7,6 @@ var autoprefixer = require('autoprefixer-core');
var livereload = require('gulp-livereload'); var livereload = require('gulp-livereload');
var print = require('gulp-print'); var print = require('gulp-print');
var phantom = require('./phantom');
var paths = require('./paths'); var paths = require('./paths');
var errorHandler = require('./errorHandler'); var errorHandler = require('./errorHandler');
@ -29,14 +28,6 @@ gulp.task('less', function() {
paths.src.root + 'System/Info/info.less' paths.src.root + 'System/Info/info.less'
]; ];
if (phantom) {
src = [
paths.src.content + 'Bootstrap/bootstrap.less',
paths.src.content + 'Vendor/vendor.less',
paths.src.content + 'sonarr.less'
];
}
return gulp.src(src) return gulp.src(src)
.pipe(print()) .pipe(print())
.pipe(sourcemaps.init()) .pipe(sourcemaps.init())

View File

@ -1,5 +1,3 @@
var phantom = require('./phantom');
var paths = { var paths = {
src : { src : {
root : './src/UI/', root : './src/UI/',
@ -20,26 +18,4 @@ var paths = {
} }
}; };
if (phantom) {
paths = {
src : {
root : './UI.Phantom/',
templates : './UI.Phantom/**/*.hbs',
html : './UI.Phantom/*.html',
partials : './UI.Phantom/**/*Partial.hbs',
scripts : './UI.Phantom/**/*.js',
less : ['./UI.Phantom/**/*.less'],
content : './UI.Phantom/Content/',
images : './UI.Phantom/Content/Images/**/*',
exclude : {
libs : '!./UI.Phantom/JsLibraries/**'
}
},
dest : {
root : './_output/UI.Phantom/',
content : './_output/UI.Phantom/Content/'
}
};
}
module.exports = paths; module.exports = paths;

View File

@ -1,14 +0,0 @@
// Switch to phantom.
// Example:
// gulp --phantom
var phantom = false;
process.argv.forEach(function(val, index, array) {
if (val === '--phantom') {
phantom = true;
}
});
console.log('Phantom:', phantom);
module.exports = phantom;

View File

@ -1,18 +1,12 @@
var path = require('path'); var path = require('path');
var stylish = require('jshint-stylish'); var stylish = require('jshint-stylish');
var webpack = require('webpack'); var webpack = require('webpack');
var phantom = require('./gulp/phantom');
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin(); var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
var uiFolder = 'UI'; var uiFolder = 'UI';
var root = path.join(__dirname, 'src', uiFolder); var root = path.join(__dirname, 'src', uiFolder);
if (phantom) {
uiFolder = 'UI.Phantom';
root = path.join(__dirname, uiFolder);
}
module.exports = { module.exports = {
devtool : '#source-map', devtool : '#source-map',
watchOptions : { poll: true }, watchOptions : { poll: true },