Skip to content

Commit c9ea810

Browse files
committed
Add initialize.sh
Which cleans all node_modules and dist directories. Then cleanly installs all packages.
1 parent 0e3558a commit c9ea810

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

initialize.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Removing all node_modules directories and dist directories..."
5+
6+
rm -rf node_modules dist
7+
rm -rf category-style/dist
8+
rm -rf log4ts-style/dist
9+
rm -rf tests-integration/rollup/node_modules
10+
rm -rf tests-integration/rollup/dist
11+
rm -rf tests-integration/webpack/node_modules
12+
rm -rf tests-integration/webpack/dist
13+
14+
echo "Installing packages for core and style flavors..."
15+
npm ci
16+
17+
echo ""
18+
echo "Installing packages for tests-integration"
19+
cd tests-integration/rollup
20+
npm ci
21+
cd ../webpack
22+
npm ci
23+
cd ../../
24+
25+
echo ""
26+
echo "Installation success."
27+
echo "To build all logging and flavors:"
28+
echo " npm run build --workspaces"
29+
echo "To build a test-integration project (requires previous command succeeded), go in respective directory (e.g. tests-integration/rollup):"
30+
echo " npm run build"
31+

0 commit comments

Comments
 (0)