metalsmith / metalsmith/metalsmith

Pass all config in constructor

Open
#280 6 comments 0 reactions 0 assignees View on GitHub
discussion enhancement to revisit
Dominant language
JavaScript
Stars
7.8k
Forks
604
PR merge metrics
No merged PRs in 30d

Description

Is there a plan to pass config as following?
```
var Metalsmith = require('metalsmith');
Metalsmith({
"source": "src",
"destination": "build",
"plugins": [
{"metalsmith-drafts": true},
{"metalsmith-markdown": true},
{"metalsmith-permalinks": "posts/:title"},
{"metalsmith-templates": "handlebars"}
]
})
.build()
```

Contributor guide

Open the contributing guide

Research direction

Start by reading the Metalsmith constructor and the current .build() entry point, then trace how source, destination, and plugins are configured today. Compare that API with the issue's example and define what behavior must be supported before validating the public interface with the project's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.