Skip to content

Samples refactoring to use a bundle app with webpack and support HMR and .vue files #476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 20, 2019

Conversation

msaelices
Copy link

@msaelices msaelices commented Apr 9, 2019

With this change, the samples apps are closer to the real-world apps by using webpack and bundling the code and allowing to use HMR and any other tns option if we run the code with npm run samples -- --hmr

Also, it allows use of SFC .vue files

@msaelices msaelices requested a review from rigor789 April 9, 2019 15:16
@codecov-io
Copy link

codecov-io commented Apr 9, 2019

Codecov Report

Merging #476 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #476   +/-   ##
=======================================
  Coverage   13.62%   13.62%           
=======================================
  Files          44       44           
  Lines        1211     1211           
  Branches      300      300           
=======================================
  Hits          165      165           
  Misses        821      821           
  Partials      225      225

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d240443...0a98c01. Read the comment docs.

@msaelices msaelices changed the title Samples refactoring to use a bundle app with webpack and support HMR Samples refactoring to use a bundle app with webpack and support HMR and .vue files Apr 9, 2019
@rigor789 rigor789 mentioned this pull request May 4, 2019
3 tasks
@msaelices msaelices changed the base branch from master to dev May 20, 2019 15:00
@msaelices msaelices merged commit 3e8dd2f into dev May 20, 2019
rigor789 pushed a commit that referenced this pull request May 31, 2019
…and .vue files (#476)

* feat (samples): Run the samples using a webpack bundle. Closer to real-world NS-vue apps. Allow any aditional parameters to the tns command like --hmr or whatever.

* feat (samples): Add a sample with a Vue component to check the HMR feature.

* Change NPM dev script to build to dist/index.js. Remove the dev:dist script as it is not useful now. Document new features

* feat (samples): Fix live reload when changing the NS-vue code

* feat (sample): Adapt all the import to nativescript-vue

* feat (samples): Separate the details page into a new .vue component for better UX

* fix (samples): Fix the 455.js sample which is now adapted to the new samples infrastructure

* chore (v-slot): Add sample (currently failing) for testing v-slot in a .vue component
@rigor789 rigor789 deleted the samples-with-webpack-and-hmr branch December 5, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants