neo.mjs 9.2.0 → 9.3.0

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='9.2.0'
23
+ * @member {String} version='9.3.0'
24
24
  */
25
- version: '9.2.0'
25
+ version: '9.3.0'
26
26
  }
27
27
 
28
28
  /**
@@ -107,7 +107,7 @@ class FooterContainer extends Container {
107
107
  }, {
108
108
  module: Component,
109
109
  cls : ['neo-version'],
110
- html : 'v9.2.0'
110
+ html : 'v9.3.0'
111
111
  }]
112
112
  }],
113
113
  /**
@@ -41,11 +41,21 @@ export default env => {
41
41
  const copyResources = resourcesPath => {
42
42
  let inputPath = path.resolve(cwd, resourcesPath),
43
43
  outputPath = path.resolve(cwd, buildTarget.folder, resourcesPath),
44
- childProcess;
44
+ childProcess, content, filePath;
45
45
 
46
46
  if (fs.existsSync(inputPath)) {
47
47
  childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${inputPath} -t ${outputPath}`], cpOpts);
48
48
  childProcess.status && process.exit(childProcess.status);
49
+
50
+ // Minify all json files inside the copied resources folder
51
+ fs.readdirSync(outputPath, {recursive: true}).forEach(fileOrFolder => {
52
+ if (fileOrFolder.endsWith('.json')) {
53
+ filePath = path.join(outputPath, fileOrFolder);
54
+ content = requireJson(filePath);
55
+
56
+ fs.writeFileSync(filePath, JSON.stringify(content));
57
+ }
58
+ });
49
59
  }
50
60
  };
51
61
 
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='9.2.0'
23
+ * @member {String} version='9.3.0'
24
24
  */
25
- version: '9.2.0'
25
+ version: '9.3.0'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -263,12 +263,12 @@ const DefaultConfig = {
263
263
  useVdomWorker: true,
264
264
  /**
265
265
  * buildScripts/injectPackageVersion.mjs will update this value
266
- * @default '9.2.0'
266
+ * @default '9.3.0'
267
267
  * @memberOf! module:Neo
268
268
  * @name config.version
269
269
  * @type String
270
270
  */
271
- version: '9.2.0'
271
+ version: '9.3.0'
272
272
  };
273
273
 
274
274
  Object.assign(DefaultConfig, {