0.9.0 • Published 7 years ago
gulp-tictail v0.9.0
gulp-tictail
Gulp target for simplifying Tictail theme creation. Please note that this is beta quality software, some template tags are not yet implemented.
Installation
$ npm install --save-dev gulp-tictailUsage
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']);$ gulpNow hit http://localhost:5555/ to enjoy your own delightful theme development experience.
For an opinionated development setup using gulp-tictail, see theme-example.
Options
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".
Development
$ git clone https://github.com/tictail/gulp-tictail .
$ npm install
$ make test