strapi-tool-dockerize icon indicating copy to clipboard operation
strapi-tool-dockerize copied to clipboard

Plugins - dependencies and build

Open cjsewell opened this issue 2 years ago • 3 comments

Feature Request

Currently the docker build only copies and installs the root level package.json and dependencies.

This means if you have built custom plugins under /src/plugins, their dependencies are not installed, and the packages are not build

The build script should search and copy any /src/plugins/*/package.json and install their dependencies.

It should also run any "build" scripts found in plugins package.json

cjsewell avatar May 28 '23 22:05 cjsewell

I do like this though how do you solve a scenario where a user has no plugins runs the tool and later adds the plugins.

Eventyret avatar May 30 '23 09:05 Eventyret

I haven't tested it out yet, but I imagine utilizing something like https://stackoverflow.com/a/63142468 to capture all the package.json files.

Assuming workspaces are used, that should work for the dependencies.

As for the build step, I'm not too sure how to pull that off without code. Maybe submitting a new feature to build.js thay would handle it?

I shall do some experiments....

cjsewell avatar May 30 '23 17:05 cjsewell

Did you find out anything else @cjsewell else I will close this issue and you can reopen it if you find out anything else.

Eventyret avatar Jul 06 '23 13:07 Eventyret