weboptimizer 2.0.1143 → 2.0.1146

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,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1143",
3
+ "version": "2.0.1146",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -510,7 +510,7 @@
510
510
  "__evaluate__": "['node'].concat(self.generic.isWeb ? 'jsdom' : [])"
511
511
  },
512
512
  "command": {
513
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '/test/.+\\.js$' --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
513
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? './test' : '${path.relative(self.path.target.base, self.path.target.test)}/`}.+\\.js$' --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
514
514
  }
515
515
  },
516
516
  "test:browser": {
@@ -518,12 +518,12 @@
518
518
  },
519
519
  "test:coverage": {
520
520
  "command": {
521
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '/test/.+\\.js$' ${self.generic.testCommandLineCoverageArguments} --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
521
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? './test' : `${path.relative(self.path.target.base, self.path.target.test)}/`}.+\\.js$' ${self.generic.testCommandLineCoverageArguments} --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
522
522
  }
523
523
  },
524
524
  "test:coverage:report": {
525
525
  "command": {
526
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '/test/.+\\.js$' ${self.generic.testCommandLineCoverageArguments} --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
526
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? './test' : `${path.relative(self.path.target.base, self.path.target.test)}/`}.+\\.js$' ${self.generic.testCommandLineCoverageArguments} --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
527
527
  }
528
528
  }
529
529
  },
@@ -1305,7 +1305,8 @@
1305
1305
  "javaScript": "javaScript/",
1306
1306
  "template": "template/"
1307
1307
  },
1308
- "base": "source/"
1308
+ "base": "source/",
1309
+ "test": "test/"
1309
1310
  },
1310
1311
  "target": {
1311
1312
  "asset": {
@@ -1322,7 +1323,8 @@
1322
1323
  },
1323
1324
  "base": "build/",
1324
1325
  "manifest": "manifest.appcache",
1325
- "public": ""
1326
+ "public": "",
1327
+ "test": "./"
1326
1328
  },
1327
1329
  "tidyUp": [
1328
1330
  {
@@ -1597,17 +1599,17 @@
1597
1599
  },
1598
1600
  "test": {
1599
1601
  "command": {
1600
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} 'test.*\\\\.js$' --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1602
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? 'test' : `${path.relative(self.path.target.base, self.path.target.test)}/`}.*\\\\.js$' --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1601
1603
  }
1602
1604
  },
1603
1605
  "test:coverage": {
1604
1606
  "command": {
1605
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} 'test.*\\\\.js$' ${self.generic.testCommandLineCoverageArguments} --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1607
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? 'test' : `${path.relative(self.path.target.base, self.path.target.test)}/`}.*\\\\.js$' ${self.generic.testCommandLineCoverageArguments} --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1606
1608
  }
1607
1609
  },
1608
1610
  "test:coverage:report": {
1609
1611
  "command": {
1610
- "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} 'test.*\\\\.js$' ${self.generic.testCommandLineCoverageArguments} --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1612
+ "__evaluate__": "self.commandLine.test.environments.map((environment) => `${self.generic.testCommandLine} '${self.path.target.test === './' ? 'test' : `${path.relative(self.path.target.base, self.path.target.test)}/`}.*\\\\.js$' ${self.generic.testCommandLineCoverageArguments} --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info --test-environment ${environment} '${path.relative('./', Helper.stripLoader(self.files.compose.javaScript)).replace(/\\.[^/.]+$/, '')}'`).join(' && ')"
1611
1613
  }
1612
1614
  }
1613
1615
  },
@@ -13,9 +13,8 @@
13
13
  }
14
14
  },
15
15
  "extends": "./tsconfig.json",
16
- "include": [
17
- "../../*.ts", "../../*.tsx",
18
- "../../*/*.ts", "../../*/*.tsx"
19
- ]
16
+ "include": [
17
+ "../../*.ts", "../../*.tsx",
18
+ "../../*/*.ts", "../../*/*.tsx"
20
19
  ]
21
20
  }