creek-themes
Theme tools for the Creek website framework.
Last updated 4 years ago by creek .
Repository · Original npm · Tarball · package.json
$ cnpm install creek-themes -g
SYNC missed versions from official npm registry.

Creek Theme Tools

This toolkit includes a file watcher, and a CLI for the Themes API.

Watcher

This tool watches a theme's folder for changes, and updates the remote theme. If it detects a change, then it will take the right action with that file: updating templates, blocks, regular files, pages, or theme.json.

Using the Watcher

  1. Make sure that you have Node.js installed on your system.
  2. Install the toolkit with NPM: npm install -g creek-themes
  3. This will install the toolkit globally.
  4. Start the toolkit set-up process: creek-themes install
  5. Follow the instructions to install your API key and website domain in the theme settings at: ~/.creek-themes/settings.json
    • You can get your API key here:
      1. Sign into the Control Panel.
      2. Click your name in the top right corner.
      3. Profile.
      4. Look for API key (you may need to reset it before it works).
  6. cd into the folder where you would like to download the remote theme.
  7. List the available themes: creek-themes list example-domain.com
  8. Download the desired theme to your local machine: creek-themes download 123@example-domain.com — In this example, 123 is the ID number of the theme.
  9. cd into the theme's directory.
  10. Start the watcher: creek-themes watch

Commands

While inside a theme directory

Run these after cd-ing into the theme's directory.

  • creek-themes watch
  • creek-themes status edit — edit this theme.
  • creek-themes status publish — publish this theme.
  • creek-themes status — publish for all user types, just managers, or just hosts.

While inside any directory

  • creek-themes install — configure creek-themes environment. Adds files to: ~/.creek-themes/...
  • creek-themes uninstall — remove creek-themes environment settings. Removes files from: ~/.creek-themes/...
  • creek-themes download 123@example-domain.com — download the theme folder.
  • creek-themes list example-domain.com — list all of the themes at a domain.

TODO:

  • Ability to update theme.json settings.
  • Sync theme up.
  • Initialize blank theme, with folder structure and theme.json file.
  • Label themes in themes list as editing, published, ...
  • Add editing/published status markers to theme list API.
  • Make sure that zip file's blocks include markup files.
  • List blocks, templates, pages.
  • On theme import, use block-name.html/js/css/jade/etc. for text rather than text from block-name.json.
  • Add theme id@domain option to the status updaters, so that you don't need to download the theme and cd into to in order to publish or preview it (i.e. set as editing theme on website).

Tips

Installing Node.js

On Windows

  • You can use the Windows command prompt to run these same commands. It works the same way Mac, Windows, and Linux.

  • A quick way to get started is to shift + right click on your themes folder and select "Open in Command Prompt".

Current Tags

  • 0.1.5                                ...           latest (4 years ago)

6 Versions

  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |