Skip to content
Fixes most errors caused by installing <nativescript-vue> plugin. IMPORTANT: run \"vue invoke nativescript-vue-preset\" twice after adding. Adds .eslint.js, replaces ~tilde with @at paths & (fixes Unable to resolve path to module import/no-unresolved & import/extensions)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
template
.gitignore
README.md
findReplace.js
generator.js
git.js
index.js
package-lock.json
package.json
pbcopy

README.md

vue add nativescript-vue-preset

Fixes most errors caused by installing <nativescript-vue> plugin.

BEFORE installing: create project using vue create --preset vpiskunov/preset-vue-ns {your-project-name}

IMPORTANT: run "vue invoke nativescript-vue-preset" twice after adding.

What does it do:

  • Adds support for platform-tagged CSS lines: e.g. adding [web] will keep that line for web, but not in native. Multiple tags per line can be added e.g. [web][android] will only keep that line in web & android, but will remove it for iOS builds etc.
    • Supported platform tags are:
      * web: ['web', 'w', 'cross']
      * ios: ['native', 'n', 'ios', 'apple', 'cross']
      * android: ['native', 'n', 'android', 'cross']
      
  • Adds .eslint.js, with support for fixed module-require resolving + disables unreasonable rules (you can always edit .eslintrc.js to suit your style)
  • Replaces ~/ tilde with @/at paths: fixes Unable to resolve path to module import/no-unresolved & import/extensions
You can’t perform that action at this time.