Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable "routing" or "routines" to filter steps in a config file #33

Open
briandominick opened this issue Feb 3, 2018 · 0 comments
Open

Comments

@briandominick
Copy link
Collaborator

briandominick commented Feb 3, 2018

To go along with #14, once we have optional labels for the steps in a config file, we should be able to allow preset configurations of them. For instance:

routines:
  - name: no-pdf
    skip:
      - publish-book
      - publish-menu
  - name: preproc
    only:
      - migrate-assets
      - parse-menu
  - name: jekyll-only
      - config_preproc
      - jekyll-build

If this goes in the config file, we need to add a actions: block level or something to differentiate. Right now the whole file's top level is an array; that will need to be subordinated to actions: the way those above are subordinate to routines:. Can probably allow the current format, conditionally, as long as there are no routines declared.

Routines could be called from the command line:

bundle exec liquidoc -c _configs/build.yml -r jekyll-only

Also, routines may require a way to handle build-steps, which is probably most of what we'd want to filter. If they're named, we can list them as sub-steps of their parent using publish-book:pdf.

routines:
  - name: no-pdf
    skip:
      - publish-book:pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant