diff --git a/demo-angular/package.json b/demo-angular/package.json index e5db161..669bbbc 100644 --- a/demo-angular/package.json +++ b/demo-angular/package.json @@ -3,9 +3,6 @@ "license": "MIT", "nativescript": { "id": "org.nativescript.demoangular", - "tns-android": { - "version": "3.0.1" - }, "tns-ios": { "version": "3.0.1" } @@ -52,10 +49,14 @@ }, "scripts": { "ns-bundle": "ns-bundle", + "build.plugin": "cd ../src && npm run build", + "ci.tslint": "tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'", + "ci.android.build": "npm run build.plugin && tns build android", + "ci.ios.build": "npm run build.plugin && tns build ios", "publish-ios-bundle": "npm run ns-bundle --ios --publish-app", "start-android-bundle": "npm run ns-bundle --android --run-app", "start-ios-bundle": "npm run ns-bundle --ios --run-app", "build-android-bundle": "npm run ns-bundle --android --build-app", "build-ios-bundle": "npm run ns-bundle --ios --build-app" } -} +} \ No newline at end of file diff --git a/demo/package.json b/demo/package.json index ffa8030..607ed99 100644 --- a/demo/package.json +++ b/demo/package.json @@ -43,6 +43,12 @@ "scripts": { "ns-bundle": "ns-bundle", "appium": "nativescript-dev-appium", + "build.plugin": "cd ../src && npm run build", + "ci.tslint": "tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'", + "ci.android.build": "npm run build.plugin && tns build android", + "ci.android.uitest": "npm run appium --runtype=android23", + "ci.ios.build": "npm run build.plugin && tns build ios", + "ci.ios.uitest": "npm run appium --runtype=ios-simulator10", "publish-ios-bundle": "npm run ns-bundle --ios --publish-app", "start-android-bundle": "npm run ns-bundle --android --run-app", "start-ios-bundle": "npm run ns-bundle --ios --run-app", diff --git a/src/package.json b/src/package.json index dfdd7ec..8b92e58 100644 --- a/src/package.json +++ b/src/package.json @@ -11,15 +11,7 @@ "scripts": { "ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc", "build": "npm i && tsc && npm run ngc", - "ci.tslint": "tslint *.ts && tslint ../demo/app/*.ts && tslint ../demo-angular/app/*.ts", - "ci.android": "npm run build && cd ../demo && tns build android", - "ci.ios": "npm run build && cd ../demo && tns build ios", - "ci.test.ios": "npm run build && cd ../demo && tns platform remove ios && tns test ios", - "ci.test.android": "npm run build && cd ../demo && tns platform remove android && tns test android", - "ci.test.ios.angular": "npm run build && cd ../demo-angular && tns platform remove ios && tns test ios", - "ci.test.android.angular": "npm run build && cd ../demo-angular && tns platform remove android", - "ci.uitest.ios": "cd ../demo && npm run appium --runtype=ios-simulator10", - "ci.uitest.android": "cd ../demo && npm run appium --runtype=android23", + "ci.tslint": "tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'", "prepublishOnly": "npm run build" }, "repository": { diff --git a/src/tslint.json b/tslint.json similarity index 100% rename from src/tslint.json rename to tslint.json