Skip to content

fix: deps #18

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 2 commits into from
Jul 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ Take a look at these existing plugins for how that can be done very simply:
* [nativescript-cardview](https://github.com/bradmartin/nativescript-cardview/tree/master/platforms)
* [nativescript-floatingactionbutton](https://github.com/bradmartin/nativescript-floatingactionbutton/tree/master/platforms)

### Clean plugin and demo files

Sometimes you may need to wipe away the `node_modules` and `demo/platforms` folders to reinstall them fresh.

1. Run `npm run clean` to wipe those clean then you can can run `npm i` to install fresh dependencies.

### <a name='Unittesting'></a>Unittesting
The plugin seed automatically adds Jasmine-based unittest support to your plugin.
Expand Down
54 changes: 27 additions & 27 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"nativescript": {
"id": "org.nativescript.demo",
"tns-ios": {
"version": "3.0.1"
},
"tns-android": {
"version": "3.0.0"
}
"nativescript": {
"id": "org.nativescript.demo",
"tns-ios": {
"version": "3.1.0"
},
"dependencies": {
"nativescript-theme-core": "^1.0.4",
"nativescript-unit-test-runner": "^0.3.4",
"nativescript-yourplugin": "../src",
"tns-core-modules": "^3.0.0"
},
"devDependencies": {
"babel-traverse": "6.12.0",
"babel-types": "6.11.1",
"babylon": "6.8.4",
"filewalker": "0.1.2",
"jasmine-core": "^2.5.2",
"karma": "^1.3.0",
"karma-jasmine": "^1.0.2",
"karma-nativescript-launcher": "^0.4.0",
"lazy": "1.0.11",
"nativescript-dev-typescript": "libs",
"typescript": "^2.2.2"
"tns-android": {
"version": "3.1.1"
}
}
},
"dependencies": {
"nativescript-theme-core": "^1.0.4",
"nativescript-unit-test-runner": "^0.3.4",
"nativescript-yourplugin": "../src",
"tns-core-modules": "^3.1.0"
},
"devDependencies": {
"babel-traverse": "6.12.0",
"babel-types": "6.11.1",
"babylon": "6.8.4",
"filewalker": "0.1.2",
"jasmine-core": "^2.5.2",
"karma": "^1.3.0",
"karma-jasmine": "^1.0.2",
"karma-nativescript-launcher": "^0.4.0",
"lazy": "1.0.11",
"nativescript-dev-typescript": "libs",
"typescript": "~2.3.0"
}
}
13 changes: 5 additions & 8 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
"plugin.link": "npm link && cd ../demo && npm link nativescript-yourplugin && cd ../src",
"plugin.tscwatch": "npm run tsc -- -w",
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles"
},
"repository": {
"type": "git",
"url": "https://github.com/YourName/nativescript-yourplugin.git"
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
"clean": "rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms && cd ../src && npm run plugin.link"
},
"keywords": [
"NativeScript",
Expand All @@ -45,9 +42,9 @@
"tns-core-modules": "^3.0.0"
},
"devDependencies": {
"tns-core-modules": "^3.0.0",
"tns-platform-declarations": "^3.0.0",
"typescript": "^2.2.2",
"tns-core-modules": "^3.1.0",
"tns-platform-declarations": "^3.1.0",
"typescript": "~2.3.0",
"prompt": "^1.0.0",
"rimraf": "^2.5.0",
"tslint": "^5.0.0"
Expand Down