This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

build verbessert

  • Loading branch information...
barbalex committed Feb 25, 2015
1 parent 1a64843 commit d97ce8cfc617f9dd12b283bef5de1fadf5193b44
Showing 1,051 changed files with 107,977 additions and 72 deletions.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -6,17 +6,25 @@
of browserify for faster bundling using caching.
*/
var browserify = require('browserify');
var watchify = require('watchify');
var bundleLogger = require('../vendor/couchapp/_attachments/util/bundleLogger');
var gulp = require('gulp');
var handleErrors = require('../vendor/couchapp/_attachments/util/handleErrors');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
var bundler = browserify({
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var browserify = require('browserify'),
watchify = require('watchify'),
bundleLogger = require('../vendor/couchapp/_attachments/util/bundleLogger'),
gulp = require('gulp'),
handleErrors = require('../vendor/couchapp/_attachments/util/handleErrors'),
source = require('vinyl-source-stream');
gulp.task('browserify', function () {
var bundler,
bundle;
bundler = browserify({
// Required watchify args
cache: {}, packageCache: {}, fullPaths: true,
cache: {},
packageCache: {},
fullPaths: true,
// Specify the entry point of your app
entries: ['./vendor/couchapp/_attachments/evab.js'],
// Add file extentions to make optional in your requires
@@ -25,7 +33,7 @@ gulp.task('browserify', function() {
debug: true
});
var bundle = function() {
bundle = function () {
// Log when bundling starts
bundleLogger.start();
@@ -43,7 +51,7 @@ gulp.task('browserify', function() {
.on('end', bundleLogger.end);
};
if(global.isWatching) {
if (global.isWatching) {
bundler = watchify(bundler);
// Rebundle with watchify on changes.
bundler.on('update', bundle);
@@ -1,14 +1,15 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
shell = require('gulp-shell'),
var gulp = require('gulp'),
shell = require('gulp-shell'),
pass_file = require('../couchpass.json'),
user_name,
password,
request;
user_name = pass_file.user;
password = pass_file.pass;
password = pass_file.pass;
request = 'couchapp push http://' + user_name + ':' + password + '@127.0.0.1:5984/evab';
View
@@ -1,17 +1,20 @@
/**
* Baut das Projekt für die Entwicklung:
* zuerst mit browserify Module einbinden
* dann style und src_1 und src_2 (hinter Body)
* dann watch
* Baut das Projekt für die Entwicklung
*/
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp');
var requireDir = require('require-dir');
var gulp = require('gulp'),
requireDir = require('require-dir'),
runSequence = require('run-sequence');
requireDir('../gulp-tasks', {recurse: true});
return gulp.task('dev', ['browserify'], function() {
gulp.start('dev_2');
return gulp.task('dev', function () {
runSequence(
'browserify',
['dev_style', 'dev_src_1', 'dev_src_2'],
'build_couchapp'
);
});
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,10 +1,15 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp');
var requireDir = require('require-dir');
var gulp = require('gulp'),
requireDir = require('require-dir'),
runSequence = require('run-sequence');
requireDir('../gulp-tasks', {recurse: true});
return gulp.task('dev_only_src', ['browserify'], function() {
gulp.start('dev_only_src_2');
return gulp.task('dev_only_src', function () {
runSequence(
'browserify',
['dev_src_1', 'dev_src_2']
);
});

This file was deleted.

Oops, something went wrong.
View
@@ -1,11 +1,18 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('dev_src_1', function() {
return gulp.src(['vendor/couchapp/_attachments/jquery.mobile.js', 'vendor/couchapp/_attachments/jquery.mobile.datebox.js', 'vendor/couchapp/_attachments/jquery.form.js', 'vendor/couchapp/_attachments/jquery.couch.js', 'vendor/couchapp/_attachments/app.js'])
gulp.task('dev_src_1', function () {
return gulp.src([
'vendor/couchapp/_attachments/jquery.mobile.js',
'vendor/couchapp/_attachments/jquery.mobile.datebox.js',
'vendor/couchapp/_attachments/jquery.form.js',
'vendor/couchapp/_attachments/jquery.couch.js',
'vendor/couchapp/_attachments/app.js'
])
.pipe(concat('main.js'))
.pipe(gulp.dest('vendor/couchapp/_attachments'))
.pipe(notify({ message: 'dev_src_1 task beendet' }));
View
@@ -1,11 +1,16 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('dev_src_2', function() {
return gulp.src(['vendor/couchapp/_attachments/markerclusterer.js', 'vendor/couchapp/_attachments/markerwithlabel.js', 'vendor/couchapp/_attachments/underscore.js'])
gulp.task('dev_src_2', function () {
return gulp.src([
'vendor/couchapp/_attachments/markerclusterer.js',
'vendor/couchapp/_attachments/markerwithlabel.js',
'vendor/couchapp/_attachments/underscore.js'
])
.pipe(concat('main2.js'))
.pipe(gulp.dest('vendor/couchapp/_attachments'))
.pipe(notify({ message: 'dev_src_2 task beendet' }));
View
@@ -1,11 +1,17 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('dev_style', function() {
return gulp.src(['_attachments/style/jquery.mobile.css', '_attachments/style/themes/gruen.min.css', '_attachments/style/jquery.mobile.datebox.css', '_attachments/style/evab.css'])
gulp.task('dev_style', function () {
return gulp.src([
'_attachments/style/jquery.mobile.css',
'_attachments/style/themes/gruen.min.css',
'_attachments/style/jquery.mobile.datebox.css',
'_attachments/style/evab.css'
])
.pipe(concat('main.css'))
.pipe(gulp.dest('_attachments/style'))
.pipe(notify({message: 'dev_style task beendet'}));
View
@@ -1,8 +1,14 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp');
var requireDir = require('require-dir');
var gulp = require('gulp'),
requireDir = require('require-dir'),
runSequence = require('run-sequence');
requireDir('../gulp-tasks', {recurse: true});
return gulp.task('prod', ['browserify', 'prod_style', 'prod_src_1', 'prod_src_2']);
return gulp.task('prod', function () {
runSequence(
['browserify', 'prod_style', 'prod_src_1', 'prod_src_2']
);
});
View
@@ -1,12 +1,19 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('prod_src_1', function() {
return gulp.src(['vendor/couchapp/_attachments/jquery.mobile.js', 'vendor/couchapp/_attachments/jquery.mobile.datebox.js', 'vendor/couchapp/_attachments/jquery.form.js', 'vendor/couchapp/_attachments/jquery.couch.js', 'vendor/couchapp/_attachments/app.js'])
gulp.task('prod_src_1', function () {
return gulp.src([
'vendor/couchapp/_attachments/jquery.mobile.js',
'vendor/couchapp/_attachments/jquery.mobile.datebox.js',
'vendor/couchapp/_attachments/jquery.form.js',
'vendor/couchapp/_attachments/jquery.couch.js',
'vendor/couchapp/_attachments/app.js'
])
.pipe(concat('main.js'))
.pipe(uglify())
.pipe(gulp.dest('vendor/couchapp/_attachments'))
View
@@ -1,12 +1,17 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
notify = require('gulp-notify');
gulp.task('prod_src_2', function() {
return gulp.src(['vendor/couchapp/_attachments/markerclusterer.js', 'vendor/couchapp/_attachments/markerwithlabel.js', 'vendor/couchapp/_attachments/underscore.js'])
gulp.task('prod_src_2', function () {
return gulp.src([
'vendor/couchapp/_attachments/markerclusterer.js',
'vendor/couchapp/_attachments/markerwithlabel.js',
'vendor/couchapp/_attachments/underscore.js'
])
.pipe(concat('main2.js'))
.pipe(uglify())
.pipe(gulp.dest('vendor/couchapp/_attachments'))
View
@@ -1,13 +1,19 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp'),
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
minifycss = require('gulp-minify-css'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('prod_style', function() {
return gulp.src(['_attachments/style/jquery.mobile.css', '_attachments/style/themes/gruen.min.css', '_attachments/style/jquery.mobile.datebox.css', '_attachments/style/evab.css'])
gulp.task('prod_style', function () {
return gulp.src([
'_attachments/style/jquery.mobile.css',
'_attachments/style/themes/gruen.min.css',
'_attachments/style/jquery.mobile.datebox.css',
'_attachments/style/evab.css'
])
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
.pipe(minifycss())
.pipe(concat('main.css'))
View
@@ -1,8 +1,9 @@
/*jslint node: true, browser: true, nomen: true, todo: true */
'use strict';
var gulp = require('gulp');
return gulp.task('watch', function() {
return gulp.task('watch', function () {
gulp.watch(
[
'_attachments/*',

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d97ce8c

Please sign in to comment.