Skip to content

Commit a2c14a4

Browse files
Merge pull request #113 from NativeScript/tgpetrov/build-aar
chore: add plugin build step
2 parents 86df303 + 16fd74b commit a2c14a4

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ matrix:
2525
language: node_js
2626
node_js: "6"
2727
jdk: oraclejdk8
28-
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
28+
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
2929
- language: android
3030
os: linux
3131
env:
3232
- WebpackAndroid="26"
3333
jdk: oraclejdk8
3434
before_install: nvm install 6
3535
script:
36-
- cd demo && npm run build.plugin && cd ../src && tns plugin build && cd ../demo && npm i && tns build android --env.uglify --env.snapshot
36+
- cd src && npm run build && cd ../demo && npm i && tns build android --env.uglify --env.snapshot
3737
- cd ../demo-angular && npm i && tns build android --env.uglify --env.snapshot --env.aot
3838
- language: android
3939
env:

demo-angular/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"scripts": {
4747
"build.plugin": "cd ../src && npm run build",
4848
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'",
49-
"ci.android.build": "npm run build.plugin && tns build android",
50-
"ci.ios.build": "npm run build.plugin && tns build ios",
49+
"ci.android.build": "cd ../src && npm run build && cd ../demo-angular && tns build android",
50+
"ci.ios.build": "cd ../src && npm run build.iosOnly && cd ../demo-angular && tns build ios",
5151
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install"
5252
}
53-
}
53+
}

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"scripts": {
4242
"build.plugin": "cd ../src && npm run build",
4343
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'",
44-
"ci.android.build": "npm run build.plugin && tns build android",
45-
"ci.ios.build": "npm run build.plugin && tns build ios",
44+
"ci.android.build": "cd ../src && npm run build && cd ../demo && tns build android",
45+
"ci.ios.build": "cd ../src && npm run build.iosOnly && cd ../demo && tns build ios",
4646
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
4747
"e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts",
4848
"compile-tests": "tsc -p e2e --watch"

src/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"scripts": {
1212
"tsc": "tsc -skipLibCheck",
1313
"ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc",
14-
"build": "npm i && tsc && npm run ngc",
14+
"build": "npm i && tsc && tns plugin build && npm run ngc",
15+
"build.iosOnly": "npm i && tsc && npm run ngc",
1516
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
1617
"prepublishOnly": "npm run build",
1718
"plugin.link": "npm link && cd ../demo-angular && npm link nativescript-camera",

0 commit comments

Comments
 (0)