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

build verbessert

  • Loading branch information...
barbalex committed Jul 2, 2014
1 parent e155182 commit 18eed6e47efd46068ece3dd82408fe9a01619757
Showing with 89 additions and 0 deletions.
  1. +59 −0 gulpfile.js
  2. +30 −0 package.json
View
@@ -0,0 +1,59 @@
/**
* Created by alex on 09.06.2014.
*/
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
notify = require('gulp-notify');
gulp.task('prod', ['prod_style', 'prod_src_1', 'prod_src_2']);
gulp.task('dev', ['dev_style', 'dev_src_1', 'dev_src_2']);
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'))
.pipe(gulp.dest('_attachments/style'))
.pipe(notify({message: 'prod_style task beendet'}));
});
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'}));
});
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/evab.js'])
.pipe(concat('main.js'))
.pipe(uglify())
.pipe(gulp.dest('vendor/couchapp/_attachments'))
.pipe(notify({ message: 'prod_src_1 task beendet' }));
});
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/evab.js'])
.pipe(concat('main.js'))
.pipe(gulp.dest('vendor/couchapp/_attachments'))
.pipe(notify({ message: 'dev_src_1 task beendet' }));
});
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'))
.pipe(notify({ message: 'prod_src_2 task beendet' }));
});
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
@@ -0,0 +1,30 @@
{
"name": "EvabMobile",
"version": "0.0.0",
"description": "Mit _evab mobile_ erfassen Naturschutzprofis und ambitionierte Amateure Artbeobachtungen direkt im Feld auf Mobilgeräten. Grösste Stärke: NutzerInnen erstellen einfach und flexibel eigene, projektspezifische Datenstrukturen.",
"main": "index.js",
"scripts": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git://github.com/barbalex/EvabMobile.git"
},
"keywords": [
"artbeobachtungen"
],
"author": "Alexander Gabriel",
"license": "ISC",
"bugs": {
"url": "https://github.com/barbalex/EvabMobile/issues"
},
"homepage": "https://github.com/barbalex/EvabMobile",
"devDependencies": {
"gulp": "~3.7.0",
"gulp-concat": "~2.2.0",
"gulp-minify-css": "~0.3.4",
"gulp-notify": "~1.3.1",
"gulp-uglify": "~0.3.0",
"gulp-autoprefixer": "0.0.7"
}
}

0 comments on commit 18eed6e

Please sign in to comment.