mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
refactor: move Bootstrap modules and templates to dedicated repo
See https://github.com/HugoBlox/hugo-blox-bootstrap
This commit is contained in:
1 parent
b8a8431ac3
commit
507f03411f
677 files changed
+324
-40588
No files matched your search
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Install node_modules manually so that users don't need to use Yarn.
|
||||
|
||||
cd ..
|
||||
|
||||
cp node_modules/jquery/dist/jquery.min.js blox-bootstrap/assets/js/_vendor/
|
||||
cp node_modules/instant.page/instantpage.js blox-bootstrap/assets/js/_vendor/
|
||||
cp -r 'node_modules/@fortawesome/fontawesome-free/webfonts' blox-bootstrap/static/
|
||||
cp -r 'node_modules/@fortawesome/fontawesome-free/css/all.min.css' blox-bootstrap/assets/css/libs/fontawesome
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Script to copy Bootstrap files into project after running `yarn` to download Bootstrap.
|
||||
# Use:
|
||||
# 1. run from project root: zsh ./scripts/update_bootstrap.sh
|
||||
# 2. rename bootstrap/vendor -> _vendor
|
||||
# 3. update renamed dir in _mixins.scss to `@import "_vendor/rfs";`
|
||||
# 4. update jQuery and Popper CDN dependencies
|
||||
|
||||
ASSETS_JS_DIR="blox-bootstrap/assets/js/_vendor/"
|
||||
ASSETS_SCSS_DIR="blox-bootstrap/assets/scss/_vendor/"
|
||||
|
||||
mkdir -p $ASSETS_SCSS_DIR/bootstrap/
|
||||
|
||||
cp node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $ASSETS_JS_DIR
|
||||
cp -r node_modules/bootstrap/scss/* $ASSETS_SCSS_DIR/bootstrap/
|
||||
|
||||
# cp node_modules/jquery/dist/jquery.min.js $ASSETS_JS_DIR
|
||||
# cp node_modules/popper.js/dist/umd/popper.min.js $ASSETS_JS_DIR
|
||||
@@ -72,7 +72,15 @@ export HUGO_BLOX_DEMO=true
|
||||
export HUGO_BLOX_DEBUG=true
|
||||
export HUGO_ENVIRONMENT=development
|
||||
export HUGOxPARAMSxDECAP_CMSxLOCAL_BACKEND=true
|
||||
export HUGO_MODULE_REPLACEMENTS="github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 -> ../../../modules/blox-bootstrap,github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify -> ../../../modules/blox-plugin-netlify,github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal -> ../../../modules/blox-plugin-reveal,github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind -> ../../../modules/blox-tailwind,github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms -> ../../../modules/blox-plugin-decap-cms,github.com/HugoBlox/hugo-blox-builder/modules/blox-core -> ../../../modules/blox-core,github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -> ../../../modules/blox-seo,github.com/HugoBlox/hugo-blox-builder/modules/blox-analytics -> ../../../modules/blox-analytics"
|
||||
|
||||
# Link local modules for development (Hugo module replacements)
|
||||
export HUGO_MODULE_REPLACEMENTS="\
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind -> ../../../modules/blox-tailwind,\
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-analytics -> ../../../modules/blox-analytics,\
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify -> ../../../modules/blox-plugin-netlify,\
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal -> ../../../modules/blox-plugin-reveal,\
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms -> ../../../modules/blox-plugin-decap-cms\
|
||||
"
|
||||
|
||||
# Optionally pre-build and generate Pagefind index for local search
|
||||
if [ "$PAGEFIND" = true ]; then
|
||||
|
||||
Reference in new issue
Block a user