mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-13 23:25:58 +00:00
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
"use strict";
|
|
|
|
var vitreumTasks = require("vitreum/tasks");
|
|
var gulp = require("gulp");
|
|
|
|
|
|
var gulp = vitreumTasks(gulp, {
|
|
entryPoints: [
|
|
'./client/homebrew',
|
|
'./client/admin'
|
|
],
|
|
|
|
DEV: true,
|
|
buildPath: "./build/",
|
|
pageTemplate: "./client/template.dot",
|
|
projectModules: ["./shared/naturalcrit","./shared/codemirror"],
|
|
additionalRequirePaths : ['./shared', './node_modules'],
|
|
assetExts: ["*.svg", "*.png", "*.jpg", "*.pdf", "*.eot", "*.otf", "*.woff", "*.woff2", "*.ico", "*.ttf"],
|
|
serverWatchPaths: ["server"],
|
|
serverScript: "server.js",
|
|
libs: [
|
|
"react",
|
|
"react-dom",
|
|
"lodash",
|
|
"classnames",
|
|
|
|
//From ./shared
|
|
"codemirror",
|
|
"codemirror/mode/gfm/gfm.js",
|
|
'codemirror/mode/javascript/javascript.js',
|
|
|
|
"moment",
|
|
"superagent",
|
|
"marked",
|
|
"pico-router",
|
|
"pico-flux"
|
|
],
|
|
clientLibs: [],
|
|
});
|
|
|
|
|
|
var rename = require('gulp-rename');
|
|
var less = require('gulp-less');
|
|
gulp.task('phb', function(){
|
|
gulp.src('./client/homebrew/phbStyle/phb.style.less')
|
|
.pipe(less())
|
|
.pipe(rename('phb.standalone.css'))
|
|
.pipe(gulp.dest('./'));
|
|
})
|
|
|