Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit ca2dc76

Browse files
committed
release: 4.1.0
1 parent dffe9ae commit ca2dc76

File tree

3 files changed

+15
-27
lines changed

3 files changed

+15
-27
lines changed

src/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nstudio/nativescript-loading-indicator",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"description": "A NativeScript plugin for showing an overlayed loading indicator.",
55
"main": "loading-indicator",
66
"typings": "index.d.ts",
@@ -18,19 +18,20 @@
1818
"tsc": "tsc -skipLibCheck",
1919
"build": "npm run tsc && npm run build.native",
2020
"build.native": "node scripts/build-native.js",
21-
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src",
21+
"postclone": "npm run npm-i && node scripts/postclone.js && cd ../demo && npm run npm-i && npx rimraf -- package-lock.json && cd ../src",
22+
"npm-i": "npm i --legacy-peer-deps",
2223
"test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
2324
"test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
2425
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude '**/platforms/**' --exclude \"**/typings/**\"",
2526
"demo.ios": "npm run tsc && cd ../demo && tns run ios",
2627
"demo.android": "npm run tsc && cd ../demo && tns run android",
2728
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json",
28-
"demo-angular.ios": "npm i && cd ../demo-angular && tns run ios",
29-
"demo-angular.android": "npm i && cd ../demo-angular && tns run android",
29+
"demo-angular.ios": "npm run npm-i && cd ../demo-angular && tns run ios",
30+
"demo-angular.android": "npm run npm-i && cd ../demo-angular && tns run android",
3031
"demo-angular.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json",
3132
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-loading-indicator && tns plugin add ../src",
32-
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",
33-
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**' --exclude '**/typings/**'",
33+
"clean": "npm run demo.reset && npx rimraf node_modules package-lock.json && npm run npm-i",
34+
"ci.tslint": "npm run npm-i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**' --exclude '**/typings/**'",
3435
"prepack": "npm run build.native",
3536
"generate.typings.ios": "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!'"
3637
},
@@ -80,11 +81,11 @@
8081
"readmeFilename": "README.md",
8182
"devDependencies": {
8283
"husky": "~4.3.0",
83-
"lint-staged": "~10.3.0",
84-
"prettier": "~2.1.1",
85-
"@nativescript/core": "~7.0.3",
86-
"@nativescript/types": "~7.0.3",
87-
"typescript": "~3.9.0",
84+
"lint-staged": "~10.5.0",
85+
"prettier": "~2.2.1",
86+
"@nativescript/core": "~8.0.0",
87+
"@nativescript/types": "~8.0.0",
88+
"typescript": "~4.1.0",
8889
"prompt": "^1.0.0",
8990
"rimraf": "^3.0.2",
9091
"tslint": "^6.1.3",
Binary file not shown.

src/scripts/build-native.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
11
const { exec } = require('child_process');
22
const semver = require('semver');
33

4-
exec('tns --version', (err, stdout, stderr) => {
4+
console.log(`executing 'ns plugin build'`);
5+
exec('ns plugin build', (err, stdout, stderr) => {
56
if (err) {
67
// node couldn't execute the command
7-
console.log(`tns --version err: ${err}`);
8+
console.log(`${err}`);
89
return;
910
}
10-
11-
const tnsVersion = semver.major(stdout);
12-
13-
// execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder.
14-
if (tnsVersion >= 4) {
15-
console.log(`executing 'tns plugin build'`);
16-
exec('tns plugin build', (err, stdout, stderr) => {
17-
if (err) {
18-
// node couldn't execute the command
19-
console.log(`${err}`);
20-
return;
21-
}
22-
});
23-
}
2411
});

0 commit comments

Comments
 (0)