mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
* feat: added issue template * fix: move dev bundles to a specific folder * docs: some documentation changes * docs: updated issue template * chore!: updated build setup * style: formatted code * chore: allow importing any file
21 lines
460 B
Bash
21 lines
460 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"
|
|
|
|
webpack --config build/webpack.config.js &
|
|
tsc -p build/tsconfig.types.json &
|
|
|
|
# Add a simple index.d.ts file to type all dev builds
|
|
echo "export * from '../dist/index.d.ts';" | tee dev/index.d.ts > /dev/null &
|
|
|
|
wait
|
|
|
|
echo "\nBuild done!" |