Skip to content

Commit be614c9

Browse files
authored
Merge pull request #22 from ShawnPavel/master
Fix npm commands referencing wrong demo folders
2 parents fe62971 + 0a1a4fb commit be614c9

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

demo-ng/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@angular/platform-browser": "~4.4.4",
2323
"@angular/platform-browser-dynamic": "~4.4.4",
2424
"@angular/router": "~4.4.4",
25-
"nativescript-angular": "~4.4.1",
2625
"@nstudio/nativescript-camera-plus": "file:../src",
26+
"nativescript-angular": "~4.4.1",
2727
"nativescript-theme-core": "~1.0.2",
2828
"reflect-metadata": "~0.1.8",
2929
"rxjs": "~5.3.0",

src/package.json

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,41 @@
1818
"demo.reset": "cd ../demo && rimraf platforms",
1919
"plugin.link": "npm link && cd ../demo && npm link @nstudio/nativescript-camera-plus && cd ../src",
2020
"plugin.tscwatch": "npm run tsc -- -w",
21-
"nuke":
22-
"rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms && cd ../demo-ng && rm -rf hooks node_modules platforms",
23-
"demo.ios": "npm run preparedemo && cd demo && tns run ios --syncAllFiles",
24-
"demo.ios.device": "npm run preparedemo && cd demo && tns run ios",
25-
"demo.ng.ios": "npm run preparedemong && cd demo-ng && tns run ios --emulator",
26-
"demo.ng.ios.device": "npm run preparedemong && cd demo-ng && tns run ios",
27-
"demo.android": "npm run preparedemo && cd demo && tns run android --syncAllFiles",
21+
"nuke": "rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms && cd ../demo-ng && rm -rf hooks node_modules platforms",
22+
"demo.ios": "npm run preparedemo && cd ../demo && tns run ios --syncAllFiles",
23+
"demo.ios.device": "npm run preparedemo && cd ../demo && tns run ios",
24+
"demo.ng.ios": "npm run preparedemong && cd ../demo-ng && tns run ios --emulator",
25+
"demo.ng.ios.device": "npm run preparedemong && cd ../demo-ng && tns run ios",
26+
"demo.android": "npm run preparedemo && cd ../demo && tns run android --syncAllFiles",
2827
"demo.android.device": "npm run preparedemo && cd ../demo && tns run android",
29-
"demo.ng.android": "npm run preparedemong && cd demo-ng && tns run android --emulator",
28+
"demo.ng.android": "npm run preparedemong && cd ../demo-ng && tns run android --emulator",
3029
"demo.ng.android.device": "npm run preparedemong && cd ../demo-ng && tns run android",
31-
"test.ios": "cd demo && tns test ios --emulator",
32-
"test.ios.device": "cd demo && tns test ios",
33-
"test.android": "cd demo && tns test android",
34-
"preparedemo":
35-
"npm i && npm run build && cd ../demo && tns plugin remove @nstudio/nativescript-camera-plus && tns plugin add ../src && tns install",
36-
"preparedemong":
37-
"npm i && npm run build && cd ../demo-ng && tns plugin remove @nstudio/nativescript-camera-plus && tns plugin add ../src && tns install",
38-
"setup": "npm i && cd demo && npm i && cd .. && npm run build && cd demo && tns plugin add .. && cd ..",
30+
"test.ios": "cd ../demo && tns test ios --emulator",
31+
"test.ios.device": "cd ../demo && tns test ios",
32+
"test.android": "cd ../demo && tns test android",
33+
"preparedemo": "npm run build && cd ../demo && tns plugin remove @nstudio/nativescript-camera-plus && tns plugin add ../src && tns install",
34+
"preparedemong": "npm run build && cd ../demo-ng && tns plugin remove @nstudio/nativescript-camera-plus && tns plugin add ../src && tns install",
35+
"setup": "npm i && cd ../demo && npm i && cd .. && npm run build && cd ../demo && tns plugin add .. && cd ..",
3936
"postclone": "npm i && node scripts/postclone.js"
4037
},
4138
"lint-staged": {
42-
"*.{ts, js, json, css, scss, md}": ["prettier --write", "git add"]
39+
"*.{ts, js, json, css, scss, md}": [
40+
"prettier --write",
41+
"git add"
42+
]
4343
},
4444
"repository": {
4545
"type": "git",
4646
"url": "https://github.com/nstudio/nativescript-camera-plus.git"
4747
},
48-
"keywords": ["NativeScript", "JavaScript", "Android", "iOS", "Camera", "Camera Plus"],
48+
"keywords": [
49+
"NativeScript",
50+
"JavaScript",
51+
"Android",
52+
"iOS",
53+
"Camera",
54+
"Camera Plus"
55+
],
4956
"author": {
5057
"name": "Nathan Walker",
5158
"email": "[email protected]"
@@ -62,6 +69,10 @@
6269
{
6370
"name": "Dick Smith",
6471
"url": "https://github.com/DickSmith"
72+
},
73+
{
74+
"name": "Shawn Pavel",
75+
"url": "https://github.com/ShawnPavel"
6576
}
6677
],
6778
"bugs": {

0 commit comments

Comments
 (0)