Gulp target for simplifying Tictail theme creation. Please note that this is beta quality software, some template tags are not yet implemented.
$ npm install --save-dev gulp-tictail
In your gulpfile.js
:
var gulp = require('gulp'),
tictail = require('gulp-tictail');
gulp.task('serve', function() {
tictail.serve({
store_id: 'pf'
});
});
gulp.task('default', ['serve']);
$ gulp
Now hit http://localhost:5555/ to enjoy your own delightful theme development experience.
For an opinionated development setup using gulp-tictail
, see theme-example.
The serve
method takes the following config options as an object:
store_id
— The store to fetch data (products etc.) from. Note that this store must be put online.port
— The desired port to listen on. Defaults to5555
.src
— Path to theme source (theme.mustache) and partials. Defaults to"./src"
.dist
— Path to static assets (images, CSS etc.) used in theme. Defaults to"./dist"
.
$ git clone https://github.com/tictail/gulp-tictail .
$ npm install
$ make test