go install github.com/daaku/cssdalek@latest
baseDir=../../
#vendDir=vendor/
vendDir=../../../
#ls -alh "${baseDir}${vendDir}";exit 0;
cssdalek \
  --css "${baseDir}public/assets/backend/js/bootstrap/dist/css/bootstrap.css"\
  --word "${baseDir}public/assets/backend/js/bootstrap/dist/js/bootstrap.js"\
  --word "${baseDir}template/backend/*.html"\
  --word "${baseDir}template/backend/*/*.html"\
  --word "${baseDir}template/backend/*/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*/*/*.html"\
  --word "${baseDir}../webx/template/backend/official/*.html"\
  --word "${baseDir}../webx/template/backend/official/*/*.html"\
  --word "${baseDir}../webx/template/backend/official/*/*/*.html"\
  --word "${baseDir}public/assets/backend/js/bootstrap.editable/js/bootstrap-editable.js"\
  --word "${baseDir}public/assets/backend/js/dialog/bootstrap-dialog.js"\
  --word "${baseDir}public/assets/backend/js/fuelux/js/fuelux.js"\
  --word "${baseDir}public/assets/backend/js/behaviour/*.js"\
  --word "${baseDir}public/assets/backend/js/behaviour/*/*.js"\
  --include-class "col-.*" > ${baseDir}public/assets/backend/js/bootstrap/dist/css/bootstrap.lite.min.css

cssdalek \
  --css "${baseDir}public/assets/backend/css/style.css"\
  --word "${baseDir}template/backend/*.html"\
  --word "${baseDir}template/backend/*/*.html"\
  --word "${baseDir}template/backend/*/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*/*.html"\
  --word "${baseDir}${vendDir}github.com/nging-plugins/*/template/backend/*/*/*/*.html"\
  --word "${baseDir}../webx/template/backend/official/*.html"\
  --word "${baseDir}../webx/template/backend/official/*/*.html"\
  --word "${baseDir}../webx/template/backend/official/*/*/*.html"\
  --word "${baseDir}public/assets/backend/js/behaviour/*.js"\
  --word "${baseDir}public/assets/backend/js/behaviour/*/*.js"\
  --word "${baseDir}public/assets/backend/js/bootstrap/dist/js/bootstrap.js"\
  --word "${baseDir}public/assets/backend/js/bootstrap.switch/bootstrap-switch.min.js"\
  --word "${baseDir}public/assets/backend/js/jquery.select2/select2.js"\
  --word "${baseDir}public/assets/backend/js/jquery.parsley/parsley.js"\
  --word "${baseDir}public/assets/backend/js/jquery.sparkline/jquery.sparkline.min.js"\
  --word "${baseDir}public/assets/backend/js/dropzone/dropzone.js"\
  --include-selector ".code-cont .main-app"\
  --include-selector ".collapse-box"\
  --include-selector ".page-aside.app .header-md"\
  --include-selector ".page-aside.sm-width"\
  --include-selector ".page-aside.xs-width"\
  --include-selector ".page-aside.xsm-width"\
  --include-class "form-*"\
  --include-id "captchaImage"\
  --include-class "col-.*"\
  --include-class "progress-bar-.*"\
  --include-class "label-*" > ${baseDir}public/assets/backend/css/style.lite.min.css
