gulp-tachi
v0.1.3
Published
Easy way to AB testing
Downloads
2
Maintainers
Readme
#gulp-tachi
product improvement
as manufacturing samurai sword
required years
Allows conveniently split up your code for AB testing
##Usage
Install:
npm install --save gulp-tachi
Gulpfile:
var abTest = require('gulp-tachi');
gulp.task('ab-test', function() {
gulp.src('./app/**/*.*')
.pipe(abTest({context: { TEST: gulp.env.test}}))
.pipe(gulp.dest('./ab_test/'))
});
Run:
gulp watch --test=A
##Examples:
###main.styl
source:
// @if TEST='A'
float left
// @endif
// @if TEST='B'
float right
// @endif
Run:
gulp watch --test=A
compile:
float left
###index.html
source:
<head>
<title>
<!-- @if TEST='A' -->
Tittle for A test
<!-- @endif -->
<!-- @if TEST='B' -->
Tittle for B test
<!-- @endif -->
</title>
</head>
Run:
gulp watch --test=B
compile:
<head>
<title>
Tittle for B test
</title>
</head>