Package Exports
- generator-sage
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generator-sage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
generator-sage
A very simple Yeoman generator for WordPress starter theme sage.
Getting Started
Install Yeoman
npm install -g yoInstall generator-sage
npm install -g generator-sageCreate a folder in your WordPress themes folder and initiate the generator
mkdir theme-name && cd $_
yo sageAnswer some questions in the prompt and you're done!
To do:
- Handle bower.json, composer.json and package.json search & replace
- Handle lang/sage.pot search & replace
- Check that roots-wrapper-override doesn't use a namespace/variable/hook that we're changing here
- Ask for soil modules and update lib/setup.php
- If GA soil module is active, ask for Google Analytics and update lib/setup.php
- Choose the frontend framework (bootstrap should not be the only choice)
- Allow options to be passed from command line (and prompt only for the missing ones)
- 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)