mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
22 lines
552 B
Bash
22 lines
552 B
Bash
#!/usr/bin/env bash
|
|
|
|
# This script is used to build the project.
|
|
# It is intended to be run from the project's root directory.
|
|
|
|
echo "\nStarting build...\n"
|
|
|
|
rm -rf dev/ dist/
|
|
mkdir dev/ dist/
|
|
|
|
echo "Target cleared...\n"
|
|
|
|
tsc -p build/tsconfig.types.json &
|
|
webpack --config build/webpack.config.js &
|
|
|
|
# Add a simple index.d.ts file to type all dev builds
|
|
echo "export * from '../dist/index';" | tee dev/index.d.ts dev/index.bundle.d.ts > /dev/null &
|
|
echo "export * from './index';" | tee dist/index.bundle.d.ts > /dev/null &
|
|
|
|
wait
|
|
|
|
echo "\nBuild done!" |