-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix: deps #18
fix: deps #18
Conversation
src/package.json
Outdated
"type": "git", | ||
"url": "https://github.com/YourName/nativescript-yourplugin.git" | ||
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles", | ||
"nuke": "rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would mind to rename the command from "nuke" to "clean" or "clear"? I think it would be more meaningful for users. What's your opinion?
In addition, you can run npm run plugin.link
in the nuke command so that the plugin is linked again in the demo after node_modules are deleted.
src/package.json
Outdated
@@ -6,8 +6,8 @@ | |||
"typings": "index.d.ts", | |||
"nativescript": { | |||
"platforms": { | |||
"android": "3.0.0", | |||
"ios": "3.0.0" | |||
"android": "3.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this is the minimum required version of the runtime that will be able to process the plugin in the application. This means that setting runtime version to 3.1.1 here will make the plugin incompatible with 3.0 apps which shouldn't be a problem. That's why we prefer to have 3.0.0 here.
@radeva makes perfect sense! Updated now 👍 |
^
ontypescript
dep which was installing2.4
which causes problemsnpm run nuke
was added to help users clear plugin and demo files for a fresh install when needed