Skip to content

Commit 3e05dc7

Browse files
committed
improved cleanup-node-modules
1 parent c09d52f commit 3e05dc7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

doc/Jamfile.v2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22
# Distributed under the Boost Software License, Version 1.0. (See accompanying
33
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
44

5+
import path ;
6+
57
make html_ : build_antora.sh : @run-script ;
68

79
actions run-script
810
{
911
bash $(>)
1012
}
1113

14+
path-constant DOC_DIR : . ;
15+
.node_modules = [ path.join $(DOC_DIR) node_modules ] ;
16+
1217
make cleanup_node_modules_ : html_ : @cleanup-node-modules ;
1318

1419
actions cleanup-node-modules
1520
{
16-
bash -c "rm -rf node_modules"
21+
rm -rf $(.node_modules)
1722
}
1823

1924
###############################################################################

0 commit comments

Comments
 (0)