Skip to content

tictail/gulp-tictail

Repository files navigation

gulp-tictail

NPM CircleCI

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-tictail

Usage

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.

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 to 5555.
  • 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