@qtoggle/qui 1.18.2 → 1.18.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qtoggle/qui",
3
3
  "description": "A JavaScript UI library with batteries included.",
4
- "version": "1.18.2",
4
+ "version": "1.18.3",
5
5
  "author": {
6
6
  "name": "Calin Crisan",
7
7
  "email": "ccrisan@gmail.com"
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qui-server"
3
- version = "1.18.2"
3
+ version = "1.18.3"
4
4
  description = "A fully fledged qToggle implementation written in Python"
5
5
  authors = [
6
6
  {name = "Calin Crisan", email = "ccrisan@gmail.com"},
@@ -210,7 +210,7 @@ function makeJSRule({type, appFullPath}) {
210
210
  }
211
211
  }
212
212
 
213
- function makeConfig({theme, isProduction, appName, appFullPath, extraFiles, cssOnly}) {
213
+ function makeConfig({theme, isProduction, appName, appFullPath, extraAliases, cssOnly}) {
214
214
  /* QUI is assumed to live in `node_modules` */
215
215
  let quiFullPath = path.resolve(__dirname, '..')
216
216
 
@@ -255,8 +255,6 @@ function makeConfig({theme, isProduction, appName, appFullPath, extraFiles, cssO
255
255
  ...requireFromDir(TMPL_REGEX, appTmplPath)
256
256
  ]
257
257
 
258
- // TODO add extraFiles to requirements
259
-
260
258
  let mainEntryName = `${appName}-bundle`
261
259
  let shellCommands = []
262
260
  let entries = {}
@@ -279,7 +277,8 @@ function makeConfig({theme, isProduction, appName, appFullPath, extraFiles, cssO
279
277
  alias: {
280
278
  $qui: quiJSPath,
281
279
  $app: appJSPath,
282
- $node: nodeJSPath
280
+ $node: nodeJSPath,
281
+ ...extraAliases
283
282
  }
284
283
  },
285
284
  output: {
@@ -359,7 +358,7 @@ function makeConfig({theme, isProduction, appName, appFullPath, extraFiles, cssO
359
358
  }
360
359
  }
361
360
 
362
- function makeConfigs({isProduction, appName, appFullPath, extraFiles}) {
361
+ function makeConfigs({isProduction, appName, appFullPath, extraAliases}) {
363
362
  /* Repeat the configuration for each theme, but only build JS once, the first time */
364
363
 
365
364
  return THEMES.map((theme, i) => makeConfig({
@@ -367,7 +366,7 @@ function makeConfigs({isProduction, appName, appFullPath, extraFiles}) {
367
366
  isProduction: isProduction,
368
367
  appName: appName,
369
368
  appFullPath: appFullPath,
370
- extraFiles: extraFiles,
369
+ extraAliases: extraAliases,
371
370
  cssOnly: i > 0
372
371
  }))
373
372
  }