GithubHelp home page GithubHelp logo

nc-webhook-seed's Introduction

NetCrafters Webhook Seed

An add-on stand-alone "theme" manager for use with the Webhook CMS platform.

The intent of this repo is to provide a stand-alone method to maintain and re-use layout/style themes within Webhook.

It does not follow theming methods outlined in the Webhook documentation.

It was created in order to support our existing development workflow and client processes at NetCrafters.

Requirements

You must have a webhook site installed.

Installation

  • Be in your webhook site's folder
  • Download this repo: wget https://github.com/NetCrafters/nc-webhook-seed/archive/master.zip
  • Unzip: unzip master.zip
  • Install dependencies:
    • # cd nc-webhook-seed
    • # npm install && bower install

Usage from Shell

  • Open a terminal and change into your webhook site's folder and start the local webhook server: grunt
  • Open another terminal (or tab) and change into the nc-webhook-seed folder and start its watchers: grunt

NOTE: You will have two grunt processes running.

Now, login to your Webhook CMS and start creating some content types. If you allow the CMS to create your scaffolding, you can use those as starting points for template development within nc-webhook-seed -- just make sure you preserve the hiearchy.

Watchers

Grunt will watch for file changes in nc-webhook-seed in the following folders:

  • images
  • javascript
  • scss
  • less
  • templates
  • pages

After a change is detected, a build process is triggered and the final files are copied to Webhook. The scss and less files are proprocessed as necessary and a main.css and print.css is generated and copied to the Webhook static folder. The images content is copied as is to the Webhook static folder. The templates and pages folder content are copied as is to Webhook proper.

The directory structure is preserved from the source folders. After the copy to Webhook proper, Webhook's simple-watch task will be triggered, as normal.

Warnings

  • The watchers will overwrite templates and pages in your webhook folder if the structure/files exist in nc-webhook-seed
  • This has not been tested with the standalone Webhook Application, but I see no reason why it shouldn't work the same.

Planned Improvements

  • Create a data-master partial example
  • Integrate re-usable content-type installation. This will require changes within Webhook (I may look into this change myself - DK.)

nc-webhook-seed's People

Contributors

kenzik avatar

Watchers

Brad McConahay avatar  avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.