🚧 Handling of package.json exceptions
This commit is contained in:
parent
daf65326ae
commit
0461c64b9a
117 changed files with 1018 additions and 772 deletions
22
packages/components/scripts/build.sh
Executable file
22
packages/components/scripts/build.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
# We'll have to come up with a cross-platform way to handle this
|
||||
# (as in, make sure it works on windows), but until that time
|
||||
# this shell script will do.
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
CUR=`pwd`
|
||||
|
||||
cd $DIR/../src/
|
||||
rm -rf ../../../dist/components
|
||||
for d in * ; do {
|
||||
cd ..
|
||||
# do something here
|
||||
mkdir -p ../../dist/components/$d
|
||||
rollup -c ./rollup.config.js ./src/$d/index.js -m -o ../../dist/components/$d/index.js -f cjs
|
||||
rollup -c ./rollup.config.js ./src/$d/index.js -m -o ../../dist/components/$d/index.mjs -f es
|
||||
cd src
|
||||
}
|
||||
done
|
||||
cd $CUR
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue