generator-reshow 0.17.40 → 0.17.42

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,18 +12,19 @@ WEBPACK_SERVER_CONFIG="--config webpack.server.mjs"
12
12
  cd $DIR
13
13
  webpackEnabled=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^webpackEnabled/ {print $2}' $YO_CONFIG)
14
14
  serverEnabled=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^serverEnabled/ {print $2}' $YO_CONFIG)
15
+ assetsRoot=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^assetsRoot/ {print $2}' $YO_CONFIG)
15
16
  HTDOCS=${DIR}$([ -e "$YO_CONFIG" ] && awk -F "=" '/^HTDOCS/ {print $2}' $YO_CONFIG)
16
17
  SWJS=${HTDOCS}/service-worker.js
17
-
18
18
  if [ ! -z "$CHK_PHP" ] && [ -s "$PHP_CONFIG" ]; then
19
19
  conf=`DUMP=cli php -r "include('$PHP_CONFIG');"`
20
20
  else
21
21
  conf='{'
22
- conf+='"assetsRoot":"./assets/",'
22
+ conf+='"assetsRoot":"'${assetsRoot:-"./assets/"}'",'
23
23
  conf+='"externals":{},'
24
24
  if [ -z "$serverEnabled" ]; then
25
25
  conf+='"indexTpl":"'${DIR}/index.tpl'",'
26
26
  conf+='"indexHtml":"'${DIR}/index.html'",'
27
+ conf+='"bustMode":"name",'
27
28
  fi
28
29
  conf+='"swDest":"'${SWJS}'",'
29
30
  # conf+='"swDebug":true,'
@@ -118,13 +119,18 @@ hot() {
118
119
  }
119
120
 
120
121
  nodeTest(){
121
- echo '{"themePath":"hello"}' | node ./server.js
122
+ theme=$1
123
+ if [ -z "$theme" ]; then
124
+ theme="Hello"
125
+ fi
126
+ echo "Theme Path: ${theme}"
127
+ echo '{"themePath":"'${theme}'"}' | node ./server.js
122
128
  echo ""
123
129
  }
124
130
 
125
131
  case "$1" in
126
132
  node)
127
- nodeTest
133
+ nodeTest $2
128
134
  ;;
129
135
  p)
130
136
  production
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.40",
2
+ "version": "0.17.42",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",