-
Notifications
You must be signed in to change notification settings - Fork 58
Add default Grunt/Gulp file #148
Comments
I suggest that we might even be able to eliminate Here's one such Gruntfile: https://github.com/xwp/wp-customize-posts/blob/develop/Gruntfile.js If we could factor out the logic from this Gruntfile into dev-lib to allow it to be |
Ideally we'd be able to just symlink to a the |
How would we handle cases where the Grunt configuration is quite different? For example, some project may not need many of the tasks included, or may have separate locations for files to process. If we use something like load-grunt-config, this would allow us to have one Grunt and separate out tasks into their own location, allowing a specific project to provide its own tasks (if needed). |
@kopepasah I would expect the configuration file to be filled in on a per-project basis, as the paths are always unique. And one can eventually turn on/off features using flags setup to true or false in the config file. |
This is being worked on in #245 There was one thing we discovered: At this moment it means one needs to copy the package.json outside. This also contains configuration data (what's the theme folder and what js files need compiling / etc., what plug-ins require js compilation) so it makes sense to stay in the project's repository. The actual tasks are referenced from inside the dev-lib from the package.json, and this makes a minimal amount of additions to the projects repository. |
There is a
Gruntfile.js
in wp-foo-bar which can be moved into this project and added in to foo-bar either as a symlink or required-in as a dependency that the project Gulp/Grunt file can extend/integrate.The text was updated successfully, but these errors were encountered: