Rename command
This commit is contained in:
parent
73b9566d18
commit
163a9d3f77
26
run
26
run
|
@ -3,19 +3,6 @@
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
function build:css {
|
|
||||||
local args=()
|
|
||||||
|
|
||||||
if [[ "${NODE_ENV:-}" == "production" ]]; then
|
|
||||||
args=(--minify)
|
|
||||||
else
|
|
||||||
args=(--watch)
|
|
||||||
fi
|
|
||||||
|
|
||||||
npx tailwindcss --content "source/**/*.html.twig" \
|
|
||||||
--output source/build/tailwind.css "${args[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function clean {
|
function clean {
|
||||||
rm -fr node_modules/ output_*/ source/build/ vendor/
|
rm -fr node_modules/ output_*/ source/build/ vendor/
|
||||||
}
|
}
|
||||||
|
@ -42,5 +29,18 @@ function help {
|
||||||
printf "\nExtended help:\n Each task has comments for general usage\n"
|
printf "\nExtended help:\n Each task has comments for general usage\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function npm:build:css {
|
||||||
|
local args=()
|
||||||
|
|
||||||
|
if [[ "${NODE_ENV:-}" == "production" ]]; then
|
||||||
|
args=(--minify)
|
||||||
|
else
|
||||||
|
args=(--watch)
|
||||||
|
fi
|
||||||
|
|
||||||
|
npx tailwindcss --content "source/**/*.html.twig" \
|
||||||
|
--output source/build/tailwind.css "${args[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
TIMEFORMAT="Task completed in %3lR"
|
TIMEFORMAT="Task completed in %3lR"
|
||||||
time "${@:-help}"
|
time "${@:-help}"
|
||||||
|
|
Loading…
Reference in a new issue