From 69cee01f49712f046450cd82a63a4ac6f220203a Mon Sep 17 00:00:00 2001 From: tgpetrov Date: Tue, 7 Aug 2018 13:58:55 +0300 Subject: [PATCH 1/2] chore: add plugin build step --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index f7cd024..8520edb 100644 --- a/src/package.json +++ b/src/package.json @@ -11,7 +11,7 @@ "scripts": { "tsc": "tsc -skipLibCheck", "ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc", - "build": "npm i && tsc && npm run ngc", + "build": "npm i && tsc && tns plugin build && npm run ngc", "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'", "prepublishOnly": "npm run build", "plugin.link": "npm link && cd ../demo-angular && npm link nativescript-camera", From 16fd74b945366f5edf2ea8ad1991c327b13d0914 Mon Sep 17 00:00:00 2001 From: tgpetrov Date: Tue, 7 Aug 2018 16:26:36 +0300 Subject: [PATCH 2/2] chore: add build.iosOnly script --- .travis.yml | 4 ++-- demo-angular/package.json | 6 +++--- demo/package.json | 4 ++-- src/package.json | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3dd75e6..ac20daa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ matrix: language: node_js node_js: "6" jdk: oraclejdk8 - script: cd demo && npm run build.plugin && npm i && tns build ios --env.uglify && cd ../demo-angular && npm run build.plugin && npm i && tns build ios --env.uglify --env.aot + script: cd src && npm run build.iosOnly && cd ../demo && npm i && tns build ios --env.uglify && cd ../demo-angular && npm i && tns build ios --env.uglify --env.aot - language: android os: linux env: @@ -33,7 +33,7 @@ matrix: jdk: oraclejdk8 before_install: nvm install 6 script: - - cd demo && npm run build.plugin && cd ../src && tns plugin build && cd ../demo && npm i && tns build android --env.uglify --env.snapshot + - cd src && npm run build && cd ../demo && npm i && tns build android --env.uglify --env.snapshot - cd ../demo-angular && npm i && tns build android --env.uglify --env.snapshot --env.aot - language: android env: diff --git a/demo-angular/package.json b/demo-angular/package.json index 405084d..51a7a03 100644 --- a/demo-angular/package.json +++ b/demo-angular/package.json @@ -46,8 +46,8 @@ "scripts": { "build.plugin": "cd ../src && npm run build", "ci.tslint": "npm i && 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", + "ci.android.build": "cd ../src && npm run build && cd ../demo-angular && tns build android", + "ci.ios.build": "cd ../src && npm run build.iosOnly && cd ../demo-angular && tns build ios", "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install" } -} \ No newline at end of file +} diff --git a/demo/package.json b/demo/package.json index 009ae35..fd05970 100644 --- a/demo/package.json +++ b/demo/package.json @@ -41,8 +41,8 @@ "scripts": { "build.plugin": "cd ../src && npm run build", "ci.tslint": "npm i && 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", + "ci.android.build": "cd ../src && npm run build && cd ../demo && tns build android", + "ci.ios.build": "cd ../src && npm run build.iosOnly && cd ../demo && tns build ios", "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install", "e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts", "compile-tests": "tsc -p e2e --watch" diff --git a/src/package.json b/src/package.json index 8520edb..5f3a372 100644 --- a/src/package.json +++ b/src/package.json @@ -12,6 +12,7 @@ "tsc": "tsc -skipLibCheck", "ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc", "build": "npm i && tsc && tns plugin build && npm run ngc", + "build.iosOnly": "npm i && tsc && npm run ngc", "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'", "prepublishOnly": "npm run build", "plugin.link": "npm link && cd ../demo-angular && npm link nativescript-camera",