@massimo-cassandro/minimo 1.29.5 → 1.29.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,8 @@ YELLOW='\033[0;33m'
12
12
  GREEN='\033[0;32m'
13
13
  NC='\033[0m' # No Color
14
14
 
15
+ DEBUG=TRUE
16
+
15
17
  # Questo script richiede zsh: se lanciato con sh/bash blocca l'esecuzione
16
18
  if [ -z "$ZSH_VERSION" ]; then
17
19
  printf "${RED}Errore: lanciare con 'zsh starter-install.sh', non con sh/bash.${NC}\n" >&2
@@ -146,6 +148,11 @@ devDependencies=(
146
148
  # @principalstudio/html-webpack-inject-preload file-loader
147
149
  )
148
150
 
151
+ if [ "$DEBUG" = "TRUE" ]; then
152
+ dependencies=( @massimo-cassandro/minimo )
153
+ devDependencies=()
154
+ fi
155
+
149
156
  for pkg in "${dependencies[@]}"; do
150
157
  npm i -S "$pkg"
151
158
  done
@@ -170,9 +177,9 @@ echo -e "${GREEN}...MINIMO FILES${NC}"
170
177
  # installato in node_modules (stessa versione che userà il progetto)
171
178
  MINIMO_PKG_DIR=./node_modules/@massimo-cassandro/minimo
172
179
 
173
- safe_cat "${MINIMO_PKG_DIR}/src/custom-properties.css" "${FRONTEND_INSTALL_PATH}/css/${FILE}"
174
- safe_cat "${MINIMO_PKG_DIR}/src/custom-media.css" "${FRONTEND_INSTALL_PATH}/css/${FILE}"
175
- safe_cat "${MINIMO_PKG_DIR}/src/fonts.css" "${FRONTEND_INSTALL_PATH}/css/${FILE}"
180
+ safe_cat "${MINIMO_PKG_DIR}/src/custom-properties.css" "${FRONTEND_INSTALL_PATH}/css/custom-properties.css"
181
+ safe_cat "${MINIMO_PKG_DIR}/src/custom-media.css" "${FRONTEND_INSTALL_PATH}/css/custom-media.css"
182
+ safe_cat "${MINIMO_PKG_DIR}/src/fonts.css" "${FRONTEND_INSTALL_PATH}/css/fonts.css"
176
183
 
177
184
  # config di build-tokens: collocato accanto al css generato (custom-properties.css).
178
185
  safe_cat "${MINIMO_PKG_DIR}/design-tokens/tokens-config-sample.mjs" "${FRONTEND_INSTALL_PATH}/css/tokens-config.mjs"
@@ -195,5 +202,6 @@ safe_cat "${SOURCE_FILES_DIR}/app_index.js" "${FRONTEND_INSTALL_PATH}/index.js"
195
202
  safe_cat "${SOURCE_FILES_DIR}/layout-critical.css" "${FRONTEND_INSTALL_PATH}/css/layout-critical.css"
196
203
 
197
204
 
205
+
198
206
  set +C
199
207
  echo -e "\n\n${GREEN}*** END ***${NC}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.29.5",
3
+ "version": "1.29.6",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",