updated npm packages
This commit is contained in:
parent
2b72c0e328
commit
9fc7fceda4
|
@ -7,7 +7,6 @@ var autoprefixer = require('autoprefixer-core');
|
|||
var livereload = require('gulp-livereload');
|
||||
|
||||
var print = require('gulp-print');
|
||||
var phantom = require('./phantom');
|
||||
var paths = require('./paths');
|
||||
var errorHandler = require('./errorHandler');
|
||||
|
||||
|
@ -29,14 +28,6 @@ gulp.task('less', function() {
|
|||
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)
|
||||
.pipe(print())
|
||||
.pipe(sourcemaps.init())
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
var phantom = require('./phantom');
|
||||
|
||||
var paths = {
|
||||
src : {
|
||||
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;
|
||||
|
|
|
@ -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;
|
|
@ -1,18 +1,12 @@
|
|||
var path = require('path');
|
||||
var stylish = require('jshint-stylish');
|
||||
var webpack = require('webpack');
|
||||
var phantom = require('./gulp/phantom');
|
||||
|
||||
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
|
||||
|
||||
var uiFolder = 'UI';
|
||||
var root = path.join(__dirname, 'src', uiFolder);
|
||||
|
||||
if (phantom) {
|
||||
uiFolder = 'UI.Phantom';
|
||||
root = path.join(__dirname, uiFolder);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
devtool : '#source-map',
|
||||
watchOptions : { poll: true },
|
||||
|
|
Loading…
Reference in New Issue