Skip to content

Commit f7051a7

Browse files
committed
fix: deps
1 parent 34b668e commit f7051a7

File tree

3 files changed

+38
-36
lines changed

3 files changed

+38
-36
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ Take a look at these existing plugins for how that can be done very simply:
101101
* [nativescript-cardview](https://github.com/bradmartin/nativescript-cardview/tree/master/platforms)
102102
* [nativescript-floatingactionbutton](https://github.com/bradmartin/nativescript-floatingactionbutton/tree/master/platforms)
103103

104+
### Clean plugin and demo files
105+
106+
Sometimes you may need to wipe away the `node_modules` and `demo/platforms` folders to reinstall them fresh.
107+
108+
1. Run `npm run clean` to wipe those clean then you can can run `npm i` to install fresh dependencies.
104109

105110
### <a name='Unittesting'></a>Unittesting
106111
The plugin seed automatically adds Jasmine-based unittest support to your plugin.

demo/package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"nativescript": {
3-
"id": "org.nativescript.demo",
4-
"tns-ios": {
5-
"version": "3.0.1"
6-
},
7-
"tns-android": {
8-
"version": "3.0.0"
9-
}
2+
"nativescript": {
3+
"id": "org.nativescript.demo",
4+
"tns-ios": {
5+
"version": "3.1.0"
106
},
11-
"dependencies": {
12-
"nativescript-theme-core": "^1.0.4",
13-
"nativescript-unit-test-runner": "^0.3.4",
14-
"nativescript-yourplugin": "../src",
15-
"tns-core-modules": "^3.0.0"
16-
},
17-
"devDependencies": {
18-
"babel-traverse": "6.12.0",
19-
"babel-types": "6.11.1",
20-
"babylon": "6.8.4",
21-
"filewalker": "0.1.2",
22-
"jasmine-core": "^2.5.2",
23-
"karma": "^1.3.0",
24-
"karma-jasmine": "^1.0.2",
25-
"karma-nativescript-launcher": "^0.4.0",
26-
"lazy": "1.0.11",
27-
"nativescript-dev-typescript": "libs",
28-
"typescript": "^2.2.2"
7+
"tns-android": {
8+
"version": "3.1.1"
299
}
30-
}
10+
},
11+
"dependencies": {
12+
"nativescript-theme-core": "^1.0.4",
13+
"nativescript-unit-test-runner": "^0.3.4",
14+
"nativescript-yourplugin": "../src",
15+
"tns-core-modules": "^3.1.0"
16+
},
17+
"devDependencies": {
18+
"babel-traverse": "6.12.0",
19+
"babel-types": "6.11.1",
20+
"babylon": "6.8.4",
21+
"filewalker": "0.1.2",
22+
"jasmine-core": "^2.5.2",
23+
"karma": "^1.3.0",
24+
"karma-jasmine": "^1.0.2",
25+
"karma-nativescript-launcher": "^0.4.0",
26+
"lazy": "1.0.11",
27+
"nativescript-dev-typescript": "libs",
28+
"typescript": "~2.3.0"
29+
}
30+
}

src/package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
"plugin.link": "npm link && cd ../demo && npm link nativescript-yourplugin && cd ../src",
2020
"plugin.tscwatch": "npm run tsc -- -w",
2121
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
22-
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles"
23-
},
24-
"repository": {
25-
"type": "git",
26-
"url": "https://github.com/YourName/nativescript-yourplugin.git"
22+
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
23+
"clean": "rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms && cd ../src && npm run plugin.link"
2724
},
2825
"keywords": [
2926
"NativeScript",
@@ -42,12 +39,12 @@
4239
"homepage": "https://github.com/YourName/nativescript-yourplugin",
4340
"readmeFilename": "README.md",
4441
"peerDependencies": {
45-
"tns-core-modules": "^3.0.0"
42+
"tns-core-modules": "^3.1.0"
4643
},
4744
"devDependencies": {
48-
"tns-core-modules": "^3.0.0",
49-
"tns-platform-declarations": "^3.0.0",
50-
"typescript": "^2.2.2",
45+
"tns-core-modules": "^3.1.0",
46+
"tns-platform-declarations": "^3.1.0",
47+
"typescript": "~2.3.0",
5148
"prompt": "^1.0.0",
5249
"rimraf": "^2.5.0",
5350
"tslint": "^5.0.0"

0 commit comments

Comments
 (0)