1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-19 06:06:54 +00:00

build: improve the JS build for PWA (#1923)

This commit is contained in:
Cotes Chung
2024-08-26 16:49:48 +08:00
committed by GitHub
parent 604e01eb36
commit fc3d101258
6 changed files with 28 additions and 27 deletions

View File

@@ -92,7 +92,7 @@ init_files() {
npm i && npm run build
# track the CSS/JS output
_sedi "/.*\/dist$/d;/^_app$/d" .gitignore
_sedi "/.*\/dist$/d" .gitignore
}
commit() {

View File

@@ -17,7 +17,6 @@ CONFIG="_config.yml"
CSS_DIST="_sass/dist"
JS_DIST="assets/js/dist"
PWA_DIST="_app"
FILES=(
"$GEM_SPEC"
@@ -118,7 +117,7 @@ build_gem() {
npm run build
# add CSS/JS distribution files to gem package
git add "$CSS_DIST" "$JS_DIST" "$PWA_DIST" -f
git add "$CSS_DIST" "$JS_DIST" -f
echo -e "\n> gem build $GEM_SPEC\n"
gem build "$GEM_SPEC"