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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NativeScript/nativescript-dev-webpack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.24.1
Choose a base ref
...
head repository: NativeScript/nativescript-dev-webpack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release
Choose a head ref

Commits on May 17, 2019

  1. Copy the full SHA
    de10041 View commit details

Commits on May 23, 2019

  1. Copy the full SHA
    dbf6bdc View commit details

Commits on May 30, 2019

  1. Copy the full SHA
    fd6bfc5 View commit details
  2. Copy the full SHA
    f4c3ba0 View commit details
  3. chore: bump version to 0.25.0 (#915)

    Vladimir Amiorkov authored May 30, 2019
    Copy the full SHA
    9a35eb0 View commit details

Commits on May 31, 2019

  1. Copy the full SHA
    2d5935c View commit details
  2. Merge pull request #896 from NativeScript/tachev/fix-custom-entry-points

    fix: unify the entry points handling and enable custom applications support in android
    Dimitar Tachev authored May 31, 2019
    Copy the full SHA
    31f6240 View commit details

Commits on Jun 3, 2019

  1. Copy the full SHA
    274ff53 View commit details
  2. Copy the full SHA
    23675a4 View commit details
  3. fix: throw errors when the compilation state is not valid in order to…

    … make the investigation easier
    DimitarTachev committed Jun 3, 2019
    Copy the full SHA
    3aef461 View commit details
  4. Merge pull request #922 from NativeScript/tachev/fix-custom-output

    fix: handle entry points with custom output filename
    Dimitar Tachev authored Jun 3, 2019
    Copy the full SHA
    48b26f4 View commit details

Commits on Jun 4, 2019

  1. fix: do not include hot updates when generating requires in entry fil…

    …es (they have to be required and processed by the Webpack runtime)
    DimitarTachev committed Jun 4, 2019
    Copy the full SHA
    27360fd View commit details
  2. Merge pull request #924 from NativeScript/tachev/fix-custom-output

    fix: do not include hot updates when generating requires in entry files
    Dimitar Tachev authored Jun 4, 2019
    Copy the full SHA
    ae9cb8e View commit details

Commits on Jun 5, 2019

  1. Update package.json

    Co-Authored-By: Kristian Dimitrov <kddimitrov@progress.com>
    mudlabs and KristianDD authored Jun 5, 2019
    Copy the full SHA
    76314ee View commit details

Commits on Jun 6, 2019

  1. Copy the full SHA
    4e622ae View commit details
  2. chore: merge release into master (#928)

    * release: cut the 0.24.0 release (#916)
    
    chore: manually update CHANGELOG for release from 0.22.0 to 0.24.0
    
    * fix: stop generating .d.ts on TS compilation (#919)
    
    In case `declaration` is set to true in `tsconfig.json` file, the webpack watcher goes in indefinite loop as each change of .ts file leads to generation of new .d.ts files which are also detected by webpack.
    To prevent this, ensure declaration is set to false in all compilation cases.
    
    * fix: move the type check to a child process in order to make it faster in bigger apps and unify the hmr and no-hmr experience. (#926)
    Fatme authored Jun 6, 2019
    Copy the full SHA
    545290d View commit details
  3. fix: handle file dependencies in non root entry modules (e.g. tns_mod…

    …ules/tns_core_modules/inspector_modules)
    DimitarTachev committed Jun 6, 2019
    Copy the full SHA
    bcf0a5c View commit details

Commits on Jun 7, 2019

  1. Merge pull request #929 from NativeScript/tachev/fix-inspector

    fix: handle file dependencies in non root entry modules
    Dimitar Tachev authored Jun 7, 2019
    Copy the full SHA
    daa04fb View commit details

Commits on Jun 11, 2019

  1. Copy the full SHA
    c2d6684 View commit details

Commits on Jun 12, 2019

  1. Merge branch 'release' into fatme/mrm

    # Conflicts:
    #	CHANGELOG.md
    #	package.json
    Fatme committed Jun 12, 2019
    Copy the full SHA
    7e9139b View commit details
  2. Merge pull request #931 from NativeScript/tachev/androidx

    fix: migrate demo apps to android x
    SvetoslavTsenov authored Jun 12, 2019
    Copy the full SHA
    1699b94 View commit details
  3. fix: emit inspector_modules as a module

    This entry point does not resolve when transpiling `tns-core-modules`.
    vchimev committed Jun 12, 2019
    Copy the full SHA
    be2a5a6 View commit details
  4. Merge branch 'master' into fatme/mrm

    Fatme authored Jun 12, 2019
    Copy the full SHA
    5bd4eea View commit details
  5. Merge pull request #933 from NativeScript/fatme/mrm

    chore: merge release into master
    Fatme authored Jun 12, 2019
    Copy the full SHA
    8df39ba View commit details

Commits on Jun 13, 2019

  1. Copy the full SHA
    94a6270 View commit details
  2. Merge pull request #935 from NativeScript/vchimev/inspector

    fix(ios): emit inspector_modules as a module
    Dimitar Tachev authored Jun 13, 2019
    Copy the full SHA
    e2fbcc6 View commit details
  3. Copy the full SHA
    e0cd8c1 View commit details
  4. Merge pull request #936 from NativeScript/tachev/preview-ios-inspector

    fix: do not add inspector_modules entry when core modules are an external module
    Dimitar Tachev authored Jun 13, 2019
    Copy the full SHA
    fc4e415 View commit details

Commits on Jun 16, 2019

  1. Copy the full SHA
    790e386 View commit details

Commits on Jun 19, 2019

  1. feat: introduce webpack only workflow (#882)

    * fix: don't provide fake paths to the {N} CLI - relative to the `app` folder
    
    * feat: remove not needed hooks
    
    * feat: remove webpack compiler logic
    
    * fix: don't copy app_resources to the platforms folder
    
    * fix: respect --env.verbose
    
    * feat: respect production mode based on release option
    
    Implements: #911
    
    * fix: watch platform specific files from node_modules
    
    Rel to: NativeScript/nativescript-cli#4480
    
    * fix: don't emit absolute webpack's runtime files
    
    Previously we needed to emit files with full paths as {N} CLI relies on this and expected them in a such format. With the changes for "webpack-only" mode, {N} CLI expects only relative paths. So we need to fix this in order to ensure that runtime.js file will not be transferred on device on change in hmr mode.
    
    * fix: don't process runtime.js files
    
    We needed a special processing for `runtime.js` files as we excluded them when transferring the files on device. As the CLI is filtering and emit only hot-update files we don't need this logic anymore.
    
    * fix: emit runtime files and entry point files
    
    * fix: update webpack config files of demo apps
    
    * fix: don't use short imports in demo apps
    
    * fix: update dependencies of demo apps so they are compatible with 6.0 release
    Fatme authored and rosen-vladimirov committed Jun 19, 2019
    Copy the full SHA
    2de4c68 View commit details

Commits on Jun 21, 2019

  1. fix: follow the symlinks in JavaScript apps (#941)

    We are already following the symlinks in TypeScript, Angular and Vue apps. It allows the plugin developers to link and develop their plugins directly in a JavaScript demo application
    Dimitar Tachev authored and rosen-vladimirov committed Jun 21, 2019
    Copy the full SHA
    f0c62fb View commit details
  2. fix: fix hmr for platform specific files in linked plugins (#946)

    * fix: override correctly webpack's watchFileSystem
    
    * fix: remove ExtraWatchWebpackPlugin from config files
    
    * chore: update demo apps
    Fatme authored and rosen-vladimirov committed Jun 21, 2019
    Copy the full SHA
    9e8c921 View commit details

Commits on Jun 25, 2019

  1. fix(xml-ns-loader): remove wrong register of xml (#940)

    Alexander Vakrilov authored and rosen-vladimirov committed Jun 25, 2019
    Copy the full SHA
    bc2f6f1 View commit details
  2. Copy the full SHA
    a352064 View commit details
  3. fix: don't throw an error from after-prepare hook when running legacy…

    … workflow with CLI <= v5.4.2 and nativescript-dev-webpack@next (#948)
    
    Rel to: #945
    Fatme authored and rosen-vladimirov committed Jun 25, 2019
    Copy the full SHA
    1e42046 View commit details

Commits on Jun 26, 2019

  1. fix: inject app.css file from unit-test-runner on test command (#949)

    Currently the app.css file from unit-test-runner is not included in bundle/vendor files on test command so the application remains without app.css file.  The `tns-core-modules` shows an error in this situation with the in their latest next versions:
    ```
    JS: Error: Could not load CSS from ./app.css: Error: com.tns.NativeScriptException: Failed to find module: "./app.css", relative to: app//
    JS:     com.tns.Module.resolvePathHelper(Module.java:146)
    JS:     com.tns.Module.resolvePath(Module.java:55)
    JS:     com.tns.Runtime.callJSMethodNative(Native Method)
    JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1212)
    JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:1092)
    JS:     com.tns.Runtime.callJSMethod(Runtime.java:1079)
    JS:     com.tns.Runtime.callJSMethod(Runtime.java:1059)
    JS:     com.tns.Runtime.callJSMethod(Runtime.java:1051)
    JS:     com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:19)
    JS:     android.app.Activity.performCreate(Activity.java:7136)
    JS:     android.app.Activity.performCreate(Activity.java:7127)
    JS:     android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
    JS:     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
    JS:     android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
    JS:     android.app.servertransac...
    ```
    
    So we need to inject app.css in order to prevent this error :)
    Fatme authored and rosen-vladimirov committed Jun 26, 2019
    Copy the full SHA
    a216ed3 View commit details

Commits on Jun 27, 2019

  1. Copy the full SHA
    4bbf839 View commit details
  2. fix: hmr should work with uglify (#953)

    Currently `hmr` with `--env.uglify` is not working as the uglifier touches all files. This leads to emit of files that are not hot updates. When CLI finds such files, it decides hmr is not successful and restarts the application.
    However, some of the emitted files are not actully changed. These emitted (and not changed) files are chunks of the entry points - as we are with HMR if there's an actual change for them, we'll receive hot-update files.
    Currently there's a logic to skip all emitted entry points and webpack runtime files (`runtime.js`) when we are with HMR. To fix the current issue, extend this logic to skip emitted chunks of entry points as well  when we are with HMR and there's no hot-update for them.
    rosen-vladimirov authored Jun 27, 2019
    Copy the full SHA
    874e4f8 View commit details

Commits on Jun 28, 2019

  1. refactor: fix deprecated APIs (#954)

    * refactor: fix onCreate() deprecated API call
    
    * chore: update apps
    Alexander Vakrilov authored and rosen-vladimirov committed Jun 28, 2019
    Copy the full SHA
    b77ecff View commit details
  2. fix: fix app.css file path on windows machines

    Currently `tns test` command on windows throws the following error:
    ```
    ERROR in ./app.js
    Module not found: Error: Can't resolve '..
    ode_modules
    ativescript-unit-test-runnerapp.css' in 'C:\Jenkins\workspace\master-cli-test-windows\TestApp\app'
     @ ./app.js 12:93-157
    Webpack compilation complete.
    { Error: Executing webpack failed with exit code 2.
        at DevicesService.<anonymous> (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:368:38)
        at Generator.throw (<anonymous>)
        at rejected (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:11:65)
        at process._tickCallback (internal/process/next_tick.js:68:7)
      allErrors:
       [ { Error: Executing webpack failed with exit code 2.
             at ChildProcess.childProcess.on (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\services\webpack\webpack-compiler-service.js:107:39)
             at ChildProcess.emit (events.js:189:13)
             at maybeClose (internal/child_process.js:970:16)
             at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) code: 2, deviceIdentifier: 'emulator-5562'
    ```
    Fatme committed Jun 28, 2019
    Copy the full SHA
    7d734d8 View commit details
  3. Merge pull request #955 from NativeScript/fatme/fix-css-file-windows

    fix: fix app.css file path on windows machines
    Fatme authored Jun 28, 2019
    Copy the full SHA
    aba0313 View commit details

Commits on Jun 30, 2019

  1. fix: don't restart application when lazy loaded code is changed in an…

    …gular app with uglify option
    
    Currently there is a logic that gets all runtime files and entry point files from webpack compilation. These files are needed to CLI in order to decides if the application should be restarted or refreshed on device(when there is at least one file that is not hot update file, CLI restarts the application). However, this logic doesn't work for lazy loaded modules in angular application as they are reported neither entry point files nor runtime files. Lazy loaded modules are directly injected into webpack compilation using the hooks of ContextModuleFactory - https://github.com/angular/ngtools-webpack-builds/blob/39ccb0b487e92a7ac4330ff9db821337b7aa5c45/src/angular_compiler_plugin.js#L516.  This PR fixes the behavior with lazy loaded files as it gets all chunks produced from webpack compilation and omits hot-update.js files from them. Chunk files are all files except hot update files. Chunk files are: `runtime.js`, `tns_modules/inspector-modules.js`, `bundle.js`, `vendor.js` and all lazy loaded modules. When a files is changed in hmr mode, <hash>.hot-update.js file is included into chunk files. This way we don't need to separate the files to entry point, runtime, lazy loaded and others. We just need to omit <hash>.hot-update.js file from chunk files from webpack compilation.
    Fatme committed Jun 30, 2019
    Copy the full SHA
    121c3b2 View commit details

Commits on Jul 1, 2019

  1. fix: create PropertyAssignment instead of string literal (Identifier)…

    … when modifying the NgModule - in some cases (e.g. when there is a decomposition in another NgModule property), the TypeScipt program is trying to read `node.name.kind` on each property causing an exception for Identifiers)
    DimitarTachev committed Jul 1, 2019
    Copy the full SHA
    a70fb3b View commit details

Commits on Jul 2, 2019

  1. Copy the full SHA
    7d18cc1 View commit details
  2. feat(hooks): improve hooks handling (#961)

    * fix(preuninstall): add preuninstall script to remove old hooks
    
    During migration from one version to another or when the plugin is removed from application we need to remove its hooks. This is usually done in preuninstall script, however, it was missing until now. This causes several issues when the version is updated as old hooks remain, but they may not be valid anymore.
    
    * fix(postinstall): remove old hooks
    
    As in 1.0.0 and CLI 6.0 we've changed the way nativescript-dev-webpack interacts with CLI, we need to remove hooks from previous nativescript-dev-webpack versions and use new ones. Usually this should happen with preuninstall script of the old version that removes the hooks. However, our current live version does not have such logic, so implement this in the postinstall of the current version.
    This way we try to ensure the current plugin will work correctly.
    
    * feat(hooks): add before-checkForChanges hook
    
    Add before-checkForChanges hook to prevent users from using the current version of the plugin with CLI 5.x.x or older. These two versions are incompatible, so add an error in case older CLI is used.
    rosen-vladimirov authored Jul 2, 2019
    Copy the full SHA
    f558607 View commit details
  3. Merge pull request #957 from NativeScript/fatme/fix-ng-uglify

    fix: don't restart application when lazy loaded code is changed in angular app with uglify option
    Fatme authored Jul 2, 2019
    Copy the full SHA
    b00fcdd View commit details
  4. Merge pull request #959 from NativeScript/tachev/fix-ng-lazy-exception

    fix: the Lazy transformer is not crashing the TypeScript program anymore
    Dimitar Tachev authored Jul 2, 2019
    Copy the full SHA
    90846e1 View commit details

Commits on Jul 3, 2019

  1. fix: allow overriding the global.process object from both the app a…

    …nd the plugins
    
    By default it will be undefined but the plugins and the app developers will be able to polyfill it. We had the same behavior with the Legacy Workflow.
    DimitarTachev committed Jul 3, 2019
    Copy the full SHA
    8c4292e View commit details
  2. Merge pull request #962 from NativeScript/tachev/fix-process-polyfill

    fix: allow overriding the `global.process` object
    Dimitar Tachev authored Jul 3, 2019
    Copy the full SHA
    804030f View commit details
  3. Merge pull request #908 from mudlabs/dependencies

    build(package): Update webpack-bundle-analyzer
    Dimitar Tachev authored Jul 3, 2019
    Copy the full SHA
    47ad5cf View commit details
Showing with 2,694 additions and 2,527 deletions.
  1. +22 −1 .github/PULL_REQUEST_TEMPLATE.md
  2. +15 −8 .gitignore
  3. +2 −0 .npmignore
  4. +5 −0 .nycrc
  5. +12 −1 .vscode/launch.json
  6. +13 −0 .vscode/tasks.json
  7. +213 −0 CHANGELOG.md
  8. +1 −1 CONTRIBUTING.md
  9. +2 −2 README.md
  10. +13 −2 androidProjectHelpers.js
  11. +33 −8 apply-css-loader.js
  12. +1 −1 bin/ns-bundle
  13. +0 −70 bundle-config-loader.js
  14. +117 −0 bundle-config-loader.spec.ts
  15. +102 −0 bundle-config-loader.ts
  16. +0 −29 css2json-loader.js
  17. +79 −0 css2json-loader.spec.ts
  18. +62 −0 css2json-loader.ts
  19. +3 −1 demo/.gitignore
  20. +2 −5 demo/AngularApp/.vscode/launch.json
  21. +7 −8 demo/AngularApp/app/App_Resources/Android/app.gradle
  22. +4 −4 demo/AngularApp/app/activity.android.ts
  23. +1 −0 demo/AngularApp/app/application.d.ts
  24. +1 −24 demo/AngularApp/app/main.ts
  25. +3 −2 demo/AngularApp/app/package.json
  26. +13 −0 demo/AngularApp/custom-application-activity.webpack.config.js
  27. +5 −20 demo/AngularApp/e2e/tests.e2e-spec.ts
  28. +1 −0 demo/AngularApp/e2e/tsconfig.json
  29. +3 −0 demo/AngularApp/nsconfig.json
  30. +13 −14 demo/AngularApp/package.json
  31. +1 −1 demo/AngularApp/tsconfig.tns.json
  32. +0 −334 demo/AngularApp/webpack.config.js
  33. +4 −4 demo/JavaScriptApp/app/activity.android.js
  34. +1 −0 demo/JavaScriptApp/app/app-root.xml
  35. +1 −0 demo/JavaScriptApp/app/app.android.css
  36. 0 demo/JavaScriptApp/app/app.common.css
  37. +1 −0 demo/JavaScriptApp/app/app.ios.css
  38. +2 −2 demo/JavaScriptApp/app/app.js
  39. +1 −1 demo/JavaScriptApp/app/main-page.android.js
  40. +1 −1 demo/JavaScriptApp/app/main-page.ios.js
  41. +1 −1 demo/JavaScriptApp/app/main-view-model.js
  42. +3 −2 demo/JavaScriptApp/app/package.json
  43. +13 −0 demo/JavaScriptApp/custom-application-activity.webpack.config.js
  44. +0 −122 demo/JavaScriptApp/e2e/config/appium.capabilities.json
  45. +3 −15 demo/JavaScriptApp/e2e/tests.e2e-spec.js
  46. +3 −0 demo/JavaScriptApp/nsconfig.json
  47. +2 −2 demo/JavaScriptApp/package.json
  48. +0 −281 demo/JavaScriptApp/webpack.config.js
  49. +1 −4 demo/TypeScriptApp/.vscode/launch.json
  50. +3 −3 demo/TypeScriptApp/app/activity.android.ts
  51. +1 −0 demo/TypeScriptApp/app/app-root.xml
  52. +2 −2 demo/TypeScriptApp/app/app.ts
  53. +1 −0 demo/TypeScriptApp/app/application.d.ts
  54. +4 −4 demo/TypeScriptApp/app/main-page.ios.ts
  55. +1 −1 demo/TypeScriptApp/app/main-view-model.ts
  56. +3 −2 demo/TypeScriptApp/app/package.json
  57. +13 −0 demo/TypeScriptApp/custom-application-activity.webpack.config.js
  58. +0 −106 demo/TypeScriptApp/e2e/config/appium.capabilities.json
  59. +0 −5 demo/TypeScriptApp/e2e/config/mocha.opts
  60. +3 −14 demo/TypeScriptApp/e2e/tests.e2e-spec.ts
  61. +3 −0 demo/TypeScriptApp/nsconfig.json
  62. +3 −3 demo/TypeScriptApp/package.json
  63. +1 −1 demo/TypeScriptApp/tsconfig.tns.json
  64. +0 −297 demo/TypeScriptApp/webpack.config.js
  65. +1 −1 demo/config/mocha.opts
  66. +2 −15 dependencyManager.js
  67. +0 −7 hmr/hmr-update.js
  68. +13 −0 hmr/hmr-update.ts
  69. +44 −0 hmr/hot-loader.ts
  70. +0 −1 hmr/index.js
  71. +1 −0 hmr/index.ts
  72. +1 −1 host/resolver.ts
  73. +4 −0 hot.js
  74. +144 −3 index.js
  75. +1 −25 index.spec.ts
  76. +3 −2 jasmine-config/jasmine.json
  77. +14 −7 lib/after-prepare.js
  78. +0 −8 lib/after-watch.js
  79. +33 −0 lib/before-checkForChanges.js
  80. +0 −16 lib/before-cleanApp.js
  81. +0 −17 lib/before-prepareJS.js
  82. +0 −22 lib/before-preview-sync.js
  83. +0 −25 lib/before-shouldPrepare.js
  84. +0 −35 lib/before-watch.js
  85. +0 −19 lib/before-watchPatterns.js
  86. +0 −182 lib/compiler.js
  87. +23 −92 lib/utils.js
  88. +1 −0 load-application-css-angular.js
  89. +29 −43 package.json
  90. +7 −47 plugins/GenerateBundleStarterPlugin.js
  91. +111 −0 plugins/GenerateNativeScriptEntryPointsPlugin.js
  92. +18 −9 plugins/NativeScriptSnapshotPlugin/index.js
  93. +12 −9 plugins/NativeScriptSnapshotPlugin/options.json
  94. +54 −14 plugins/PlatformFSPlugin.ts
  95. +14 −24 plugins/WatchStateLoggerPlugin.ts
  96. +1 −0 plugins/index.js
  97. +37 −2 postinstall.js
  98. +11 −0 preuninstall.js
  99. +15 −5 projectFilesManager.js
  100. +23 −17 projectHelpers.js
  101. +9 −1 snapshot/android/project-snapshot-generator-cli-ags-parser.js
  102. +51 −121 snapshot/android/project-snapshot-generator.js
  103. +344 −75 snapshot/android/snapshot-generator.js
  104. +61 −2 snapshot/android/utils.js
  105. +1 −1 templates/tsconfig.tns.json
  106. +72 −49 templates/webpack.angular.js
  107. +64 −20 templates/webpack.config.spec.ts
  108. +61 −58 templates/webpack.javascript.js
  109. +59 −56 templates/webpack.typescript.js
  110. +77 −44 templates/webpack.vue.js
  111. +37 −0 transformers/ns-replace-lazy-loader.spec.ts
  112. +2 −1 transformers/ns-replace-lazy-loader.ts
  113. +13 −1 unit-testing-config-loader.js
  114. +3 −12 utils/ast-utils.ts
  115. +25 −0 utils/tsconfig-utils.ts
  116. +315 −0 xml-namespace-loader.spec.ts
  117. +59 −29 xml-namespace-loader.js → xml-namespace-loader.ts
23 changes: 22 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -35,5 +35,26 @@ Migration steps:
[Provide a migration path for existing applications.]
-->

<!--
E2E TESTS
Additional e2e tests can be executed by comment including trigger phrase.
Phrases:
`test cli-smoke`: Smoke tests for `tns run`.
`test cli-create`: Tests for `tns create` commans.
`test cli-plugin`: Tests for `tns plugin *` commands.
`test cli-preview`: Tests for `tns preview` command.
`test cli-regression`: Tests for backward compatibility with old projects.
`test cli-resources`: Test for resource generate.
`test cli-tests`: Tests for `tns test` command.
`test cli-vue`: Smoke tests for VueJS projects based on {N} cli.
`test cli-templates`: Tests for `tns run` on {N} templates.
`test cli-misc`:
`test cli-build`: Test for `tns build` on emulators/simulators
`test cli-device`: Test for `tns run` on real devices
`test cli-debug`: Tests for `tns debug`
`test cli-run`: Tests for `tns run`
-->

[CLA]: http://www.nativescript.org/cla
[CLA]: http://www.nativescript.org/cla
23 changes: 15 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,39 +2,46 @@
node_modules
*.tgz
package-lock.json
*.js.map

plugins/NativeScriptAngularCompilerPlugin.d.ts
plugins/NativeScriptAngularCompilerPlugin.js
plugins/NativeScriptAngularCompilerPlugin.js.map

transformers/*.d.ts
transformers/*.js
transformers/*.js.map

utils/*.d.ts
utils/*.js
utils/*.js.map

hmr/*.d.ts
hmr/*.js

plugins/PlatformFSPlugin.d.ts
plugins/PlatformFSPlugin.js
plugins/PlatformFSPlugin.js.map

plugins/WatchStateLoggerPlugin.d.ts
plugins/WatchStateLoggerPlugin.js
plugins/WatchStateLoggerPlugin.js.map

host/resolver.d.ts
host/resolver.js
host/resolver.js.map

jasmine-config/reporter.d.ts
jasmine-config/reporter.js
jasmine-config/reporter.js.map

bundle-config-loader.d.ts
bundle-config-loader.js

xml-namespace-loader.d.ts
xml-namespace-loader.js

css2json-loader.d.ts
css2json-loader.js

**/*.spec.js*
**/*.spec.d.ts*

hooks
.DS_Store

.nyc_output
coverage
!projectHelpers.spec.js
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@ demo
*.spec.*
.vscode/
.github/
.nyc_output
coverage/
jasmine-config/
CONTRIBUTING.md
CODE_OF_CONDUCT.md
5 changes: 5 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"exclude": ["/demo/**"],
"reporter": ["text", "lcov"]
}
13 changes: 12 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@
"program": "${workspaceFolder}/node_modules/jasmine/bin/jasmine.js",
"args": [
"--config=jasmine-config/jasmine.json"
]
],
"preLaunchTask": "npm:tsc"
},
{
"type": "node",
@@ -19,6 +20,16 @@
"args": [ "--env.android", "--env.aot" ],
"runtimeArgs": [ "--preserve-symlinks" ],
"stopOnEntry": true,
},
{
"type": "node",
"request": "launch",
"name": "TypeScriptApp Webpack",
"cwd": "${workspaceFolder}/demo/TypeScriptApp",
"program": "${workspaceFolder}/demo/TypeScriptApp/node_modules/.bin/webpack",
"args": [ "--env.android" ],
"stopOnEntry": true,
"preLaunchTask": "npm:tsc"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label":"npm:tsc",
"type": "npm",
"script": "tsc",
"problemMatcher": []
}
]
}
213 changes: 213 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,216 @@
<a name="1.5.1"></a>
## [1.5.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/v1.5.0...v1.5.1) (2020-02-25)


### Bug Fixes

* `The provided Android NDK is vnull while the recommended one is v21.0.6113669` error in some cases ([23aa6c5](https://github.com/NativeScript/nativescript-dev-webpack/commit/23aa6c5))
* AOT compilation of multiple workers should work ([af5cb84](https://github.com/NativeScript/nativescript-dev-webpack/commit/af5cb84))
* replace extension coming from package.json ([a04c0f8](https://github.com/NativeScript/nativescript-dev-webpack/commit/a04c0f8))


### Features

* Add .kt extension to known entry types ([55b56c8](https://github.com/NativeScript/nativescript-dev-webpack/commit/55b56c8))
* Add .kt extension to known ones ([6e145a4](https://github.com/NativeScript/nativescript-dev-webpack/commit/6e145a4))



<a name="1.5.0"></a>
# [1.5.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.4.1...1.5.0) (2020-02-04)


### Bug Fixes

* ensure the js snapshot entry dir if not created (avoid ENOENT error) ([2a0eaf6](https://github.com/NativeScript/nativescript-dev-webpack/commit/2a0eaf6))
* stop searching for snapshot artefacts when the snapshot tools are skipped (it's a cloud build, there aren't any snapshot artefacts locally) ([b8da140](https://github.com/NativeScript/nativescript-dev-webpack/commit/b8da140))


### Features

* **dependencies:** updated `[@angular](https://github.com/angular)/compiler-cli` dependency ([1dbcbf2](https://github.com/NativeScript/nativescript-dev-webpack/commit/1dbcbf2)), closes [#1114](https://github.com/NativeScript/nativescript-dev-webpack/issues/1114)
* allow extending webpack.config.js through env ([69ace1e](https://github.com/NativeScript/nativescript-dev-webpack/commit/69ace1e))



<a name="1.4.1"></a>
## [1.4.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.4.0...1.4.1) (2020-01-07)


### Bug Fixes

* add missing tsconfig paths when the app is using only scoped modules and angular ([87ec157](https://github.com/NativeScript/nativescript-dev-webpack/commit/87ec157))
* handle missing paths obj in tsconfig ([867a9f1](https://github.com/NativeScript/nativescript-dev-webpack/commit/867a9f1))


<a name="1.4.0"></a>
# [1.4.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.3.1...1.4.0) (2019-12-08)

### Bug Fixes

* add import of `.css` file into another `.css` file ([c5e4552](https://github.com/NativeScript/nativescript-dev-webpack/commit/c5e4552))
* avoid duplicate modules from tns-core-modules and [@nativescript](https://github.com/nativescript)/core causing app crashes on Android ([b74b231](https://github.com/NativeScript/nativescript-dev-webpack/commit/b74b231))
* bundle emitted on save without changes ([2d01df9](https://github.com/NativeScript/nativescript-dev-webpack/commit/2d01df9)), closes [/github.com/webpack/webpack/blob/4056506488c1e071dfc9a0127daa61bf531170bf/lib/Compiler.js#L326](https://github.com//github.com/webpack/webpack/blob/4056506488c1e071dfc9a0127daa61bf531170bf/lib/Compiler.js/issues/L326)
* fix module import of local css files ([2c0a36e](https://github.com/NativeScript/nativescript-dev-webpack/commit/2c0a36e)), closes [/github.com/webpack-contrib/css-loader/blob/967fb66da2545f04055eb0900a69f86e484dd842/src/utils.js#L220](https://github.com//github.com/webpack-contrib/css-loader/blob/967fb66da2545f04055eb0900a69f86e484dd842/src/utils.js/issues/L220)
* remove the tns-core-modules dependency in order to allow [@nativescrip](https://github.com/nativescrip)/core migration ([7d60958](https://github.com/NativeScript/nativescript-dev-webpack/commit/7d60958))
* stop ignoring the initial hot updates ([d032e4c](https://github.com/NativeScript/nativescript-dev-webpack/commit/d032e4c))
* stop on compilation error in typescript applications ([df7d122](https://github.com/NativeScript/nativescript-dev-webpack/commit/df7d122))
* update worker loader in order to fix HMR ([5ad141e](https://github.com/NativeScript/nativescript-dev-webpack/commit/5ad141e))

### Features

* snapshot in Docker on macOS with Android runtime 6.3.0 or higher as it will not contain snapshot tools for macOS anymore ([9e99683](https://github.com/NativeScript/nativescript-dev-webpack/commit/9e99683))
* stop using the proxy `tns-core-modules` package when the `[@nativescript](https://github.com/nativescript)/core` is available ([061b270](https://github.com/NativeScript/nativescript-dev-webpack/commit/061b270))



<a name="1.3.0"></a>
# [1.3.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.2.1...1.3.0) (2019-10-31)


### Bug Fixes

* exclude files from tests folder from built application ([c61f10e](https://github.com/NativeScript/nativescript-dev-webpack/commit/c61f10e))
* fix dependencies in package.json ([eefd042](https://github.com/NativeScript/nativescript-dev-webpack/commit/eefd042)), closes [/github.com/NativeScript/nativescript-dev-webpack/blob/master/bundle-config-loader.ts#L4](https://github.com//github.com/NativeScript/nativescript-dev-webpack/blob/master/bundle-config-loader.ts/issues/L4) [/github.com/NativeScript/nativescript-dev-webpack/blob/2978b81b5a8100774b2bb4a331ac8637205927b8/package.json#L54](https://github.com//github.com/NativeScript/nativescript-dev-webpack/blob/2978b81b5a8100774b2bb4a331ac8637205927b8/package.json/issues/L54)
* fix xxd path for local snapshots generation ([f63d493](https://github.com/NativeScript/nativescript-dev-webpack/commit/f63d493))
* handle correctly webpack compilation errors ([363c4da](https://github.com/NativeScript/nativescript-dev-webpack/commit/363c4da))
* handle imports like [@import](https://github.com/import) url("./xxx.css") ([8921120](https://github.com/NativeScript/nativescript-dev-webpack/commit/8921120))
* search for the proper NDK executable on Windows ([f93bb6c](https://github.com/NativeScript/nativescript-dev-webpack/commit/f93bb6c))
* Unbound namespace error with ios and android ([#1053](https://github.com/NativeScript/nativescript-dev-webpack/issues/1053)) ([6cd6efe](https://github.com/NativeScript/nativescript-dev-webpack/commit/6cd6efe))


### Features

* add useForImports option ([632af4f](https://github.com/NativeScript/nativescript-dev-webpack/commit/632af4f))
* ensure valid CLI version when Windows snapshot is requested ([3a687c0](https://github.com/NativeScript/nativescript-dev-webpack/commit/3a687c0))
* support [@nativescript](https://github.com/nativescript) scope in host resolver ([efda509](https://github.com/NativeScript/nativescript-dev-webpack/commit/efda509))
* support useLibs though env.compileSnapshot and calculate the NDK path internally ([5431bd7](https://github.com/NativeScript/nativescript-dev-webpack/commit/5431bd7))
* support V8 snapshots on Windows ([2e9b753](https://github.com/NativeScript/nativescript-dev-webpack/commit/2e9b753))
* use css2json loader by default ([6b0c9ae](https://github.com/NativeScript/nativescript-dev-webpack/commit/6b0c9ae))



<a name="1.2.1"></a>
## [1.2.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.2.0...1.2.1) (2019-10-03)


### Features

* snapshot in docker container when the local tools are not available ([6861d22](https://github.com/NativeScript/nativescript-dev-webpack/commit/6861d22))



<a name="1.2.0"></a>
# [1.2.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.1.1...1.2.0) (2019-09-03)


### Bug Fixes

* register non-relative app.css module ([710acd7](https://github.com/NativeScript/nativescript-dev-webpack/commit/710acd7))


### Features

* support dynamic ES6 import ([4a07932](https://github.com/NativeScript/nativescript-dev-webpack/commit/4a07932))


<a name="1.1.1"></a>
## [1.1.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.1.0...1.1.1) (2019-08-22)


### Bug Fixes

* add ia64 as supported architecture ([65d5d3f](https://github.com/NativeScript/nativescript-dev-webpack/commit/65d5d3f))



<a name="1.1.0"></a>
# [1.1.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.2...1.1.0) (2019-08-19)


### Bug Fixes

* **hmr:** check for hot update should not create new file ([c9656a9](https://github.com/NativeScript/nativescript-dev-webpack/commit/c9656a9))


### Features

* update to angular 8.2 ([d13441a](https://github.com/NativeScript/nativescript-dev-webpack/commit/d13441a))



<a name="1.0.3"></a>
## [1.0.3](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.2...1.0.3) (2019-08-05)


### Bug Fixes

* crash with source-map instead of inline-source-map (https://github.com/NativeScript/nativescript-dev-webpack/issues/968) ([ff07d6c](https://github.com/NativeScript/nativescript-dev-webpack/commit/ff07d6c))
* **update-ns-webpack:** skip the update of tsconfig.tns.json in… ([#1001](https://github.com/NativeScript/nativescript-dev-webpack/issues/1001)) ([2ed9850](https://github.com/NativeScript/nativescript-dev-webpack/commit/2ed9850))



<a name="1.0.2"></a>
## [1.0.2](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.1...1.0.2) (2019-07-26)


### Bug Fixes

* do not require `.js.map` files in the entry points when someone is using devtool: "source-map" ([#968](https://github.com/NativeScript/nativescript-dev-webpack/issues/968)) ([4bb6124](https://github.com/NativeScript/nativescript-dev-webpack/commit/4bb6124))
* avoid getting invalid require calls when building from Windows ([#989](https://github.com/NativeScript/nativescript-dev-webpack/issues/989)) ([4799271](https://github.com/NativeScript/nativescript-dev-webpack/commit/4799271))
* escape the regex for the path to the entry module of application ([#998](https://github.com/NativeScript/nativescript-dev-webpack/issues/998)) ([571c7f2](https://github.com/NativeScript/nativescript-dev-webpack/commit/571c7f2))


<a name="1.0.1"></a>
## [1.0.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.0...1.0.1) (2019-07-16)


### Bug Fixes

* don't include partial scss files in bundle ([#988](https://github.com/NativeScript/nativescript-dev-webpack/issues/988)) ([786bd6c](https://github.com/NativeScript/nativescript-dev-webpack/commit/786bd6c))
* **js:** try to resolve node_modules from the project root before resolving in a linked location ([#987](https://github.com/NativeScript/nativescript-dev-webpack/issues/987)) ([a3df142](https://github.com/NativeScript/nativescript-dev-webpack/commit/a3df142))


<a name="1.0.0"></a>
# [1.0.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.24.1...1.0.0) (2019-07-10)


### Bug Fixes

* allow overriding the `global.process` object from both the app and the plugins ([8c4292e](https://github.com/NativeScript/nativescript-dev-webpack/commit/8c4292e))
* auto accept new or deleted files ([#972](https://github.com/NativeScript/nativescript-dev-webpack/issues/972)) ([bd893ce](https://github.com/NativeScript/nativescript-dev-webpack/commit/bd893ce))
* avoid generating invalid JavaScript when merging IIFE files ([7586d4c](https://github.com/NativeScript/nativescript-dev-webpack/commit/7586d4c))
* create PropertyAssignment instead of string literal (Identifier) when modifying the NgModule - in some cases (e.g. when there is a decomposition in another NgModule property), the TypeScipt program is trying to read `node.name.kind` on each property causing an exception for Identifiers) ([a70fb3b](https://github.com/NativeScript/nativescript-dev-webpack/commit/a70fb3b))
* do not add inspector_modules entry when core modules are an external module ([e0cd8c1](https://github.com/NativeScript/nativescript-dev-webpack/commit/e0cd8c1))
* do not show warning for format differences in templates ([#947](https://github.com/NativeScript/nativescript-dev-webpack/issues/947)) ([a352064](https://github.com/NativeScript/nativescript-dev-webpack/commit/a352064))
* don't restart application when lazy loaded code is changed in angular app with uglify option ([121c3b2](https://github.com/NativeScript/nativescript-dev-webpack/commit/121c3b2))
* emit inspector_modules as a module ([be2a5a6](https://github.com/NativeScript/nativescript-dev-webpack/commit/be2a5a6))
* fix app.css file path on windows machines ([7d734d8](https://github.com/NativeScript/nativescript-dev-webpack/commit/7d734d8))
* fix hmr for platform specific files in linked plugins ([#946](https://github.com/NativeScript/nativescript-dev-webpack/issues/946)) ([9e8c921](https://github.com/NativeScript/nativescript-dev-webpack/commit/9e8c921))
* follow the symlinks in JavaScript apps ([#941](https://github.com/NativeScript/nativescript-dev-webpack/issues/941)) ([f0c62fb](https://github.com/NativeScript/nativescript-dev-webpack/commit/f0c62fb))
* hmr should work with uglify ([#953](https://github.com/NativeScript/nativescript-dev-webpack/issues/953)) ([874e4f8](https://github.com/NativeScript/nativescript-dev-webpack/commit/874e4f8))
* **xml-ns-loader:** remove wrong register of xml ([#940](https://github.com/NativeScript/nativescript-dev-webpack/issues/940)) ([bc2f6f1](https://github.com/NativeScript/nativescript-dev-webpack/commit/bc2f6f1))
* inject app.css file from unit-test-runner on test command ([#949](https://github.com/NativeScript/nativescript-dev-webpack/issues/949)) ([a216ed3](https://github.com/NativeScript/nativescript-dev-webpack/commit/a216ed3))
* log the real snapshot tool error by trying to evaluate the input file script ([1a9c4b2](https://github.com/NativeScript/nativescript-dev-webpack/commit/1a9c4b2))
* migrate demo apps to android x ([c2d6684](https://github.com/NativeScript/nativescript-dev-webpack/commit/c2d6684))
* unify the entry points handling and enable custom applications in android ([de10041](https://github.com/NativeScript/nativescript-dev-webpack/commit/de10041))
* **hooks:** improve hooks handling ([#961](https://github.com/NativeScript/nativescript-dev-webpack/issues/961)) ([f558607](https://github.com/NativeScript/nativescript-dev-webpack/commit/f558607))

### Features

* introduce webpack only workflow ([#882](https://github.com/NativeScript/nativescript-dev-webpack/issues/882)) ([2de4c68](https://github.com/NativeScript/nativescript-dev-webpack/commit/2de4c68))
* no need of "page" suffix ([#966](https://github.com/NativeScript/nativescript-dev-webpack/pull/966)) ([d4a8dec](https://github.com/NativeScript/nativescript-dev-webpack/commit/d4a8dec803acf39b7cdeb4f3bc8c23284046fe67))
* support for file qualifiers ([#966](https://github.com/NativeScript/nativescript-dev-webpack/pull/966)) ([d4a8dec](https://github.com/NativeScript/nativescript-dev-webpack/commit/d4a8dec803acf39b7cdeb4f3bc8c23284046fe67))
* universal hmr loader ([#966](https://github.com/NativeScript/nativescript-dev-webpack/pull/966)) ([d4a8dec](https://github.com/NativeScript/nativescript-dev-webpack/commit/d4a8dec803acf39b7cdeb4f3bc8c23284046fe67))

### BREAKING CHANGES:

* the file names of the NativeScript pages are not required to end with `-page` or `-root`. All `xml`, `css`, `js`, `ts` and `scss` files are not included in the bundle.

* the plugin is not working with NativeScript CLI older than 6.0.0 (`nativescript@6.0.0`).

* the Webpack mode it set to `production` based on the `--release` flag of the NativeScript CLI, instead of the `--env.uglify` one.

<a name="0.24.1"></a>
## [0.24.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.24.0...0.24.1) (2019-06-06)

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ NOTE: There are three test apps in the repository, located in the `/demo` direct
4. Build the app for Android or iOS.
``` bash
tns run android/ios --bundle
tns run android/ios
```
5. Install [appium](http://appium.io/) globally.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -33,9 +33,9 @@ For more details, see the [NativeScript docs for building with webpack](http://d
```sh
$ npm install --save-dev nativescript-dev-webpack

$ tns run android --bundle
$ tns run android
or
$ tns run ios --bundle
$ tns run ios
```

## Contribute
Loading