Skip to content

Commit 45ea90e

Browse files
committed
better scripts
1 parent 85c8e16 commit 45ea90e

File tree

1 file changed

+32
-18
lines changed

1 file changed

+32
-18
lines changed

src/package.json

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "nativescript-floatingactionbutton",
33
"version": "4.1.0",
4-
"description": "A NativeScript plugin for Material Design Floating Action Button.",
4+
"description":
5+
"A NativeScript plugin for Material Design Floating Action Button.",
56
"main": "fab",
67
"typings": "index.d.ts",
78
"nativescript": {
@@ -23,24 +24,36 @@
2324
"scripts": {
2425
"tsc": "tsc -skipLibCheck",
2526
"build": "npm i && tsc",
26-
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link",
27-
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
28-
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
29-
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
30-
"plugin.link": "npm link && cd ../demo && npm link nativescript-floatingactionbutton && cd ../src",
31-
"plugin.tscwatch": "npm run tsc -- -w",
32-
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
33-
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
34-
"demo.reset": "cd ../demo && rimraf platforms",
35-
"plugin.prepare": "npm run tsc && cd ../demo && tns plugin remove nativescript-floatingactionbutton && tns plugin add ../src",
36-
"clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
37-
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'"
27+
"demo.ios": "npm run preparedemo && cd ../demo && tns run ios --emulator",
28+
"demo.ios.device":
29+
"npm run preparedemo && cd ../demo && tns platform remove ios && tns run ios",
30+
"demo.android":
31+
"npm run preparedemo && cd ../demo && tns platform remove android && tns run android --justlaunch",
32+
"test":
33+
"npm run tslint && npm run tslint.demo && cd ../demo && tns build ios && tns build android",
34+
"test.ios":
35+
"cd ../demo && tns platform remove ios && tns test ios --emulator",
36+
"test.ios.device": "cd ../demo && tns platform remove ios && tns test ios",
37+
"test.android":
38+
"cd ../demo && tns platform remove android && tns test android --justlaunch",
39+
"preparedemo":
40+
"npm run build && cd ../demo && tns plugin remove nativescript-floatingactionbutton && tns plugin add ../src && tns install",
41+
"setup": "npm run build && cd ../demo && npm i",
42+
"setupandinstall":
43+
"npm i && cd ../demo && npm i && cd ../src && npm run build && cd ../demo && tns plugin add ../src && cd ../src",
44+
"tslint":
45+
"tslint --config '../tslint.json' '*.ts' --exclude '**/node_modules/**'",
46+
"tslint.demo":
47+
"tslint --config '../tslint.json' '../demo/app/*.ts' --exclude '**/node_modules/**'",
48+
"ci.tslint": "npm run tslint && npm run tslint.demo",
49+
"prepublishOnly": "npm run build",
50+
"development.setup":
51+
"npm run setup && npm link && cd ../demo && npm link nativescript-floatingactionbutton && cd ../src",
52+
"generate.typings.ios":
53+
"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'"
3854
},
3955
"lint-staged": {
40-
"*.ts": [
41-
"prettier --write",
42-
"git add"
43-
]
56+
"*.ts": ["prettier --write", "git add"]
4457
},
4558
"keywords": [
4659
"ecosystem:nativescript",
@@ -91,7 +104,8 @@
91104
}
92105
],
93106
"license": "MIT",
94-
"bugs": "https://github.com/bradmartin/nativescript-floatingactionbutton/issues",
107+
"bugs":
108+
"https://github.com/bradmartin/nativescript-floatingactionbutton/issues",
95109
"homepage": "https://github.com/bradmartin/nativescript-floatingactionbutton",
96110
"devDependencies": {
97111
"husky": "^0.13.4",

0 commit comments

Comments
 (0)