leanweb 1.2.0 → 1.2.1
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/README.md +2 -1
- package/commands/dist.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -691,7 +691,8 @@ of the event.
|
|
|
691
691
|
### Post dist hook
|
|
692
692
|
|
|
693
693
|
If `post-dist` file is present in the project root directory, it will be called
|
|
694
|
-
after `lw dist` is done. This could be useful to copy dist
|
|
694
|
+
after `lw dist` is done. This could be useful to copy `dist/\*` to somewhere
|
|
695
|
+
else.
|
|
695
696
|
|
|
696
697
|
## More examples and tutorials
|
|
697
698
|
|
package/commands/dist.js
CHANGED
|
@@ -62,8 +62,9 @@ if (args.length >= 3) {
|
|
|
62
62
|
fse.copySync(`./${utils.dirs.build}/${resource}`, `./${utils.dirs.dist}/${resource}`, { dereference: true });
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
const postDistFile = './post-dist';
|
|
66
|
+
if (fs.existsSync(postDistFile) && fs.statSync(postDistFile).isFile()) {
|
|
67
|
+
await utils.exec(postDistFile);
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
})();
|