primate 0.31.7 → 0.31.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/hooks/register.js +8 -3
package/package.json
CHANGED
package/src/hooks/register.js
CHANGED
|
@@ -38,10 +38,15 @@ const post = async app => {
|
|
|
38
38
|
// copy additional subdirectories to build/server
|
|
39
39
|
await copy_includes(app, location.server);
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
if (await app.path.components.exists()) {
|
|
42
|
+
// copy components to build/components
|
|
43
|
+
await app.stage(app.path.components, FS.File.join(location.components));
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
const components = await app.runpath(location.components).collect();
|
|
46
|
+
|
|
47
|
+
// from the build directory, compile to server and client
|
|
48
|
+
await Promise.all(components.map(component => app.compile(component)));
|
|
49
|
+
}
|
|
45
50
|
|
|
46
51
|
return app;
|
|
47
52
|
};
|