Skip to content

Consider renaming themedir/index.js #223

Closed
@mdaffin

Description

@mdaffin

#154 was recently merged but with the discussions about introducing a server-side plugin framework (being discussed in #198), we may want to consider renaming the themeDir/index.js in prepare.js L162 to something else if we decide we want to use that for the server side plugins instead. If we do this then we can treat the themeDir as just another plugin rather then having to special case it.

If we release the next version as is then this will be a lot harder to change in the future.

Proposals:

  • enhanceApp.js - consistent with the .vuepress/enahnceApp.js.
  • themeApp.js
  • themeEnhanceApp.js - consistent with internal naming.
  • app.js
  • client.js

We might also consider if we want to add client-side support to the plugins (so plugins can add components, for example, #143 could just be a plugin).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions