generator-sage

    0.1.1 • Public • Published

    generator-sage

    A very simple Yeoman generator for WordPress starter theme sage.

    Getting Started

    Install Yeoman

    npm install -g yo
    

    Install generator-sage

    npm install -g generator-sage
    

    Create a folder in your WordPress themes folder and initiate the generator

    mkdir theme-name && cd $_
    yo sage
    

    Answer some questions in the prompt and you're done!

    To do:

    1. Handle bower.json, composer.json and package.json search & replace
    2. Handle lang/sage.pot search & replace
    3. Check that roots-wrapper-override doesn't use a namespace/variable/hook that we're changing here
    4. Ask for soil modules and update lib/setup.php
    • If GA soil module is active, ask for Google Analytics and update lib/setup.php
    1. Choose the frontend framework (bootstrap should not be the only choice)
    2. Allow options to be passed from command line (and prompt only for the missing ones)
    3. Setup a web page/endpoint that returns an archive of generated theme, using one of the following methods:
      • html5 form UI
      • direct http POST requests (so we could get generated themes with a simple curL request in other scripts)

    Install

    npm i generator-sage

    DownloadsWeekly Downloads

    8

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • pierre.dargham