Gulp target for simplified Tictail theme creation.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
test
.gitignore
.npmignore
Makefile
README.md
gulpfile.coffee
gulpfile.js
package-lock.json
package.json
release.sh

README.md

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