|
11 | 11 | }
|
12 | 12 | },
|
13 | 13 | "scripts": {
|
| 14 | + "precommit": "lint-staged", |
14 | 15 | "tsc": "tsc -skipLibCheck",
|
15 | 16 | "build": "npm i && tsc",
|
16 | 17 | "link": "npm i && cd ../demo && npm i && cd ../src && npm run plugin.link",
|
17 | 18 | "demo.reset": "cd ../demo && rimraf platforms",
|
18 |
| - "plugin.link": |
19 |
| - "npm link && cd ../demo && npm link nativescript-camera-plus && cd ../src", |
| 19 | + "plugin.link": "npm link && cd ../demo && npm link nativescript-camera-plus && cd ../src", |
20 | 20 | "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", |
| 21 | + "nuke": "rm -rf node_modules && cd ../demo && rm -rf hooks node_modules platforms && cd ../demo-ng && rm -rf hooks node_modules platforms", |
23 | 22 | "demo.ios": "npm run preparedemo && cd demo && tns run ios --syncAllFiles",
|
24 | 23 | "demo.ios.device": "npm run preparedemo && cd demo && tns run ios",
|
25 |
| - "demo.ng.ios": |
26 |
| - "npm run preparedemong && cd demo-ng && tns run ios --emulator", |
| 24 | + "demo.ng.ios": "npm run preparedemong && cd demo-ng && tns run ios --emulator", |
27 | 25 | "demo.ng.ios.device": "npm run preparedemong && cd demo-ng && tns run ios",
|
28 |
| - "demo.android": |
29 |
| - "npm run preparedemo && cd demo && tns run android --syncAllFiles", |
30 |
| - "demo.android.device": |
31 |
| - "npm run preparedemo && cd ../demo && tns run android", |
32 |
| - "demo.ng.android": |
33 |
| - "npm run preparedemong && cd demo-ng && tns run android --emulator", |
34 |
| - "demo.ng.android.device": |
35 |
| - "npm run preparedemong && cd ../demo-ng && tns run android", |
| 26 | + "demo.android": "npm run preparedemo && cd demo && tns run android --syncAllFiles", |
| 27 | + "demo.android.device": "npm run preparedemo && cd ../demo && tns run android", |
| 28 | + "demo.ng.android": "npm run preparedemong && cd demo-ng && tns run android --emulator", |
| 29 | + "demo.ng.android.device": "npm run preparedemong && cd ../demo-ng && tns run android", |
36 | 30 | "test.ios": "cd demo && tns test ios --emulator",
|
37 | 31 | "test.ios.device": "cd demo && tns test ios",
|
38 | 32 | "test.android": "cd demo && tns test android",
|
39 |
| - "preparedemo": |
40 |
| - "npm i && npm run build && cd ../demo && tns plugin remove nativescript-camera-plus && tns plugin add ../src && tns install", |
41 |
| - "preparedemong": |
42 |
| - "npm i && npm run build && cd ../demo-ng && tns plugin remove nativescript-camera-plus && tns plugin add ../src && tns install", |
43 |
| - "setup": |
44 |
| - "npm i && cd demo && npm i && cd .. && npm run build && cd demo && tns plugin add .. && cd ..", |
| 33 | + "preparedemo": "npm i && npm run build && cd ../demo && tns plugin remove nativescript-camera-plus && tns plugin add ../src && tns install", |
| 34 | + "preparedemong": "npm i && npm run build && cd ../demo-ng && tns plugin remove 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 ..", |
45 | 36 | "postclone": "npm i && node scripts/postclone.js"
|
46 | 37 | },
|
| 38 | + "lint-staged": { |
| 39 | + "*.{ts, js, json, css, scss, md}": [ |
| 40 | + "prettier --write", |
| 41 | + "git add" |
| 42 | + ] |
| 43 | + }, |
47 | 44 | "repository": {
|
48 | 45 | "type": "git",
|
49 | 46 | "url": "https://github.com/nstudio/nativescript-camera-plus.git"
|
|
77 | 74 | "homepage": "https://github.com/nstudio/nativescript-camera-plus",
|
78 | 75 | "readmeFilename": "README.md",
|
79 | 76 | "devDependencies": {
|
80 |
| - "husky": "^0.13.4", |
81 |
| - "lint-staged": "^3.6.1", |
| 77 | + "husky": "^0.14.3", |
| 78 | + "lint-staged": "^6.1.0", |
82 | 79 | "prettier": "^1.10.2",
|
83 | 80 | "tns-core-modules": "~3.4.0",
|
84 | 81 | "tns-platform-declarations": "~3.4.0",
|
|
0 commit comments