build(striker-ui): revise Makefile.am to include new pages and src files

main
Tsu-ba-me 2 years ago
parent 97b94eae50
commit 75602010e8
  1. 62
      striker-ui/Makefile.am
  2. 37
      striker-ui/lsxdist

@ -8,59 +8,43 @@ nextbuilddir = .next
# List of paths relative to the build output directory. # List of paths relative to the build output directory.
# #
outpages = \ outpages = \
anvil.html \
config.html \
file-manager.html \
index.html \ index.html \
server.html \ init.html \
file-manager.html prepare-host.html \
server.html
outjsmodulesdir = _next outjsmodulesdir = _next
outimagesdir = pngs outimagesdir = pngs
# The build output directory listed under EXTRA_DIST contains the files to # The build output directory listed under EXTRA_DIST contains the files to
# include in the release/source tarball. # include in the release/source tarball.
# #
# It is recommended to use the following command to regenerate the file list # It is recommended to use the lsxdist script to regenerate the file list
# as files get added/removed: # as files get added/removed.
#
# find . \
# -mindepth 1 -maxdepth 1 \
# -not \( -name node_modules -prune \) \
# -not \( -name *git* -prune \) \
# -not \( -name *husky* -prune \) \
# -not \( -name public -prune \) \
# -not \( -name *[Mm]ake* -prune \) \
# | sed -E 's@^./(.+)$@\1 \\@'
#
# The find command:
# * ignores ./node_modules directory,
# * ignores git related files,
# * ignores husky related files
# * ignores ./public directory
# * ignores make related files, and
# * removes leading "./" and append "\"
#
# Note: This only works when we want to include all files within the listed
# subdirectories. It is recommended to run a similar find command on a
# subdirectory to skip undesired files in the subdirectory.
# #
EXTRA_DIST = \ EXTRA_DIST = \
$(nextoutdir) \ $(nextoutdir) \
commitlint.config.js \
components \
.env \
.eslintignore \
.eslintrc.json \
hooks \
lib \
.lintstagedrc.json \
next.config.js \ next.config.js \
next-env.d.ts \ next-env.d.ts \
tsconfig.json \
theme \
styles \
.lintstagedrc.json \
README.md \
package.json \ package.json \
lib \ package-lock.json \
.prettierrc.json \
types \
components \
pages \ pages \
.eslintrc.json \ .prettierrc.json \
commitlint.config.js \ README.md \
.eslintignore \ styles \
.env \ theme \
package-lock.json tsconfig.json \
types
# Blank target; the build output directory should be usable as-is. # Blank target; the build output directory should be usable as-is.
$(nextoutdir): ; $(nextoutdir): ;

@ -0,0 +1,37 @@
#!/bin/bash
#
# This script is for listing the EXTRA_DIST value in Makefile.am
#
# Note: the build output directory (out/ at the time of writing) should be
# replaced by the corresponding variable set in the Makefile (currently
# "nextoutdir").
#
# The find command:
# * ignores node_modules/ directory,
# * ignores git related files,
# * ignores husky related files,
# * ignores public/ directoy,
# * ignores make related files,
# * ignores environment-specific dot env files,
# * ignores this script,
# * ignores auto-generated .next/
# and
# * removes leading "./" and append "\"
found=$(find . \
-mindepth 1 -maxdepth 1 \
-not \( -name node_modules -prune \) \
-not \( -name *git* -prune \) \
-not \( -name *husky* -prune \) \
-not \( -name public -prune \) \
-not \( -name *[Mm]ake* -prune \) \
-not \( -name [.]env[.]* -prune \) \
-not \( -name "*$(basename ${BASH_SOURCE[0]})*" -prune \) \
-not \( -name ".next" -prune \) \
| sed -E 's@^./(.+)$@\1 \\@')
sorted=$(sort <<< "$found")
echo "${sorted::-1}"
echo "lines: $(wc -l <<< "$found")"
Loading…
Cancel
Save