Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit ab6bbf6

Browse files
author
Fatme
authored
chore: merge release into master (#850)
* release: cut the 0.21.0 release * fix: add support for ts files on test command when `--bundle` is provided (#848) Rel to: NativeScript/nativescript-cli#4477 NativeScript/nativescript-cli#1798
1 parent 7670e33 commit ab6bbf6

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

Diff for: CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<a name="0.21.0"></a>
2+
# [0.21.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.20.3...0.21.0) (2019-03-21)
3+
4+
5+
### Bug Fixes
6+
7+
* Emit inspector_modules.js as a separate entry point for iOS ([00ecaa0](https://github.com/NativeScript/nativescript-dev-webpack/commit/00ecaa0))
8+
* execute bundle-config-loader only for the entry point of the application ([#829](https://github.com/NativeScript/nativescript-dev-webpack/issues/829)) ([36824b1](https://github.com/NativeScript/nativescript-dev-webpack/commit/36824b1))
9+
* fix "Cannot read property 'kill' of undefined" error ([#822](https://github.com/NativeScript/nativescript-dev-webpack/issues/822)) ([8d18853](https://github.com/NativeScript/nativescript-dev-webpack/commit/8d18853))
10+
* stop deleting chunks with compilation errors in order to avoid outdated app state when deleting files or throwing errors ([#836](https://github.com/NativeScript/nativescript-dev-webpack/issues/836)) ([69cb061](https://github.com/NativeScript/nativescript-dev-webpack/commit/69cb061))
11+
* **HMR:** modulePath on Windows to apply changes in app styles at runtime ([#807](https://github.com/NativeScript/nativescript-dev-webpack/issues/807)) ([c4b4fee](https://github.com/NativeScript/nativescript-dev-webpack/commit/c4b4fee))
12+
* **inspector_modules:** Switch to `single` runtime chunk ([6e780af](https://github.com/NativeScript/nativescript-dev-webpack/commit/6e780af))
13+
14+
15+
### Features
16+
17+
* Implement unit testing with bundle ([#835](https://github.com/NativeScript/nativescript-dev-webpack/issues/835)) ([7944611](https://github.com/NativeScript/nativescript-dev-webpack/commit/7944611))
18+
* Support Angular Ivy modules with AOT ([#828](https://github.com/NativeScript/nativescript-dev-webpack/issues/828)) ([f476c56](https://github.com/NativeScript/nativescript-dev-webpack/commit/f476c56))
19+
20+
21+
122
<a name="0.20.3"></a>
223
## [0.20.3](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.20.2...0.20.3) (2019-03-14)
324

Diff for: unit-testing-config-loader.js

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const { join, relative } = require("path");
22

33
module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp }) {
4-
const testFilesRegExp = getKarmaConfig().files;
4+
// TODO: Consider to use the files property from karma.conf.js
5+
const testFilesRegExp = /tests\/.*\.(ts|js)/;
56
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner");
67
const runnerRelativePath = relative(appFullPath, runnerFullPath);
78
let source = `
@@ -29,16 +30,4 @@ module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp
2930
`;
3031

3132
return source;
32-
}
33-
34-
function getKarmaConfig() {
35-
let result = { files: /tests\/.*\.(js|ts)/ };
36-
const pathToKarmaConfig = join(__dirname, "../../karma.conf.js");
37-
if (existsSync(pathToKarmaConfig)) {
38-
try {
39-
require(pathToKarmaConfig)({ set: (options) => result = options });
40-
} catch (err) { }
41-
}
42-
43-
return result;
4433
}

0 commit comments

Comments
 (0)