weboptimizer 4.0.98 → 4.0.99-1

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/dist/index.js CHANGED
@@ -209,7 +209,12 @@ environment = eval('process.env')) => {
209
209
  if (!childProcessOptions.env) childProcessOptions.env = {};
210
210
  if (typeof childProcessOptions.env.PATH !== 'string') childProcessOptions.env.PATH = '';
211
211
  childProcessOptions.env.PATH += `: ${webOptimizerPath}/node_modules/.bin`;
212
- const childProcess = spawnChildProcess(configuration.commandLine.build.command, commandLineArguments, childProcessOptions);
212
+
213
+ /*
214
+ NOTE: Passing arguments separately is deprecated in
215
+ shell mode since they would only be concatenated.
216
+ */
217
+ const childProcess = spawnChildProcess([configuration.commandLine.build.command].concat(commandLineArguments).join(' '), childProcessOptions);
213
218
  const copyAdditionalFilesAndTidyUp = () => {
214
219
  for (const filePath of configuration.files.additionalPaths) {
215
220
  const sourcePath = join(configuration.path.source.base, filePath);
@@ -282,7 +287,9 @@ environment = eval('process.env')) => {
282
287
  if (evaluated.result) processPromises.push(new Promise((resolve, reject) => {
283
288
  const commandLineArguments = (task.arguments || []).concat(additionalArguments);
284
289
  void log.info('Running "' + (`${task.command} ` + commandLineArguments.join(' ')).trim() + '"');
285
- const childProcess = spawnChildProcess(task.command, commandLineArguments, childProcessOptions);
290
+
291
+ // NOTE: See notice for build process above.
292
+ const childProcess = spawnChildProcess([task.command].concat(commandLineArguments).join(' '), childProcessOptions);
286
293
  const closeHandler = getProcessCloseHandler(resolve, reject);
287
294
  for (const closeEventName of CLOSE_EVENT_NAMES) childProcess.on(closeEventName, closeHandler);
288
295
  childProcesses.push(childProcess);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.98",
3
+ "version": "4.0.99-1",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -1377,7 +1377,7 @@
1377
1377
  "javaScript": "javaScript/",
1378
1378
  "template": "template/"
1379
1379
  },
1380
- "base": "source/",
1380
+ "base": "src/",
1381
1381
  "test": "test/"
1382
1382
  },
1383
1383
  "target": {
@@ -1393,7 +1393,7 @@
1393
1393
  "javaScript": "javaScript/",
1394
1394
  "template": "template/"
1395
1395
  },
1396
- "base": "build/",
1396
+ "base": "dist/",
1397
1397
  "manifest": "manifest.appcache",
1398
1398
  "public": "",
1399
1399
  "test": "./"
package/readme.md CHANGED
@@ -184,7 +184,7 @@ default source, target, asset or build paths do it in your **package.json**:
184
184
  "manifest": "manifest.appcache",
185
185
  "target": {
186
186
  ...
187
- "base": "build/",
187
+ "base": "dist/",
188
188
  ...
189
189
  },
190
190
  "tidyUp": ["crap"],
@@ -4,15 +4,15 @@
4
4
  "compilerOptions": {
5
5
  "declaration": false,
6
6
  "paths": {
7
- "@asset/*": ["../../source/*"],
8
- "@cascadingStyleSheet/*": ["../../source/cascadingStyleSheet/*"],
9
- "@data/*": ["../../source/data/*"],
10
- "@font/*": ["../../source/font/*"],
11
- "@image/*": ["../../source/image/*"],
12
- "@javaScript/*": ["../../source/javaScript/*"],
13
- "@root/*": ["../../source/*"],
14
- "@source/*": ["../../source/*"],
15
- "@template/*": ["../../source/template/*"]
7
+ "@asset/*": ["../../src/*"],
8
+ "@cascadingStyleSheet/*": ["../../src/cascadingStyleSheet/*"],
9
+ "@data/*": ["../../src/data/*"],
10
+ "@font/*": ["../../src/font/*"],
11
+ "@image/*": ["../../src/image/*"],
12
+ "@javaScript/*": ["../../src/javaScript/*"],
13
+ "@root/*": ["../../src/*"],
14
+ "@source/*": ["../../src/*"],
15
+ "@template/*": ["../../src/template/*"]
16
16
  }
17
17
  },
18
18
 
@@ -20,10 +20,8 @@
20
20
  "../../*.ts", "../../*.tsx",
21
21
  "../../*/*.ts", "../../*/*.tsx",
22
22
 
23
- "../../assets/source/**/*.ts", "../../assets/source/**/*.tsx",
24
23
  "../../assets/src/**/*.ts", "../../assets/src/**/*.tsx",
25
24
 
26
- "../../source/**/*.ts", "../../source/**/*.tsx",
27
25
  "../../src/**/*.ts", "../../src/**/*.tsx",
28
26
 
29
27
  "../../test/*.ts", "../../test/*.tsx",
package/tsconfig.json CHANGED
@@ -34,9 +34,7 @@
34
34
  "*/declarations.d.ts",
35
35
 
36
36
  "assets/src/**/*.ts", "/assets/src/**/*.tsx",
37
- "assets/source/**/*.ts", "/assets/source/**/*.tsx",
38
37
 
39
- "source/**/*.ts", "source/**/*.tsx",
40
38
  "src/**/*.ts", "src/**/*.tsx",
41
39
 
42
40
  "test/*.ts", "test/*.tsx",
@@ -20,10 +20,8 @@
20
20
  "../../*.ts", "../../*.tsx",
21
21
  "../../*/*.ts", "../../*/*.tsx",
22
22
 
23
- "../../assets/source/**/*.ts", "../../assets/source/**/*.tsx",
24
23
  "../../assets/src/**/*.ts", "../../assets/src/**/*.tsx",
25
24
 
26
- "../../source/**/*.ts", "../../source/**/*.tsx",
27
25
  "../../src/**/*.ts", "../../src/**/*.tsx",
28
26
 
29
27
  "../../test/*.ts", "../../test/*.tsx",