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

[RFC] Public API / Userland Config #40

Closed
1 of 5 tasks
thescientist13 opened this issue Apr 16, 2019 · 0 comments · Fixed by #53
Closed
1 of 5 tasks

[RFC] Public API / Userland Config #40

thescientist13 opened this issue Apr 16, 2019 · 0 comments · Fixed by #53
Assignees
Labels
RFC Proposal and changes to workflows, architecture, APIs, etc v0.2.0
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Apr 16, 2019

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Greenwood will need to support the ability to let user's configure the greenwood build directly, like for being able to set additional paths, or project metadata.

This would also open up an easy path for #5

Details

As an initial test, greenwood should support

  1. A greenwood.config.js file in the user's root / project workspace
  2. It should allow the user to configure a different src/ directory (all other assumptions of pages, templates, etc will be the same.
  3. Should have tests written for it
  4. Should be documented in the README
# greenwood.config.js
const path = require('path');

module.export = {
  workspace: path.join(__dirname, 'www')
};

Note: Additional context configurations can be reviewed on a per item basis, but my feeling is all the context "state" should be handled as much as possible by greenwood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Proposal and changes to workflows, architecture, APIs, etc v0.2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants