46cl / wp-boilerplate

[unstable] A Wordpress boilerplate created by 46cl
MIT License
3 stars 1 forks source link

Rewrite wp-manager.js as a standalone project generator/manager #5

Open jvelo opened 9 years ago

jvelo commented 9 years ago

There are several limitations to the "boilerplate" approach.

A better approach would be to have a standalone tool that can create minimal wordpress projects based on question/answers and templates ; and also manages the future lifecycle of this projects (update, add plugins, etc. etc.). This tool, let's call it wp-gg for example should be standalone and installable via npm. A sample usage could be something like :

$ npm install -g wp-gg
[...] // installation

$ wp-gg create
? what is the slug of your project ? my-project
? what is the default locale for this project ? fr_FR
? what template do you want to use ? default-template
[...] // etc.

What do you think ?

jvelo commented 9 years ago

Note: the templates (basically they are a directory with files and sub-directories to be copied) should still allow for the use of placeholders. For example this would allow to inject the name of the project in the README file.